Remove old code from notes icon click handler
This commit is contained in:
parent
7d94b0325f
commit
f7cd0e84f9
1 changed files with 1 additions and 7 deletions
|
@ -2086,13 +2086,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…
Add table
Add a link
Reference in a new issue