mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-06 19:08:06 +03:00
Remove old code from notes icon click handler (#3085)
Release Notes: - Fix clicking the notes icon when people are in the channel (preview only)
This commit is contained in:
commit
acffc7e7f0
@ -2107,13 +2107,7 @@ impl CollabPanel {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.on_click(MouseButton::Left, move |_, this, cx| {
|
.on_click(MouseButton::Left, move |_, this, cx| {
|
||||||
let participants =
|
this.open_channel_notes(&OpenChannelNotes { channel_id }, cx);
|
||||||
this.channel_store.read(cx).channel_participants(channel_id);
|
|
||||||
if is_active || participants.is_empty() {
|
|
||||||
this.open_channel_notes(&OpenChannelNotes { channel_id }, cx);
|
|
||||||
} else {
|
|
||||||
this.join_channel(channel_id, cx);
|
|
||||||
};
|
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.align_children_center()
|
.align_children_center()
|
||||||
|
Loading…
Reference in New Issue
Block a user