mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-01 11:25:12 +03:00
Avoid redundant notification after creating the ChannelList when not authenticated
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
ff966c8d04
commit
f8fb45912d
@ -98,6 +98,9 @@ impl ChannelList {
|
||||
|
||||
this.update(&mut cx, |this, cx| {
|
||||
if available_channels.is_none() {
|
||||
if this.available_channels.is_none() {
|
||||
return;
|
||||
}
|
||||
this.channels.clear();
|
||||
}
|
||||
this.available_channels = available_channels;
|
||||
|
Loading…
Reference in New Issue
Block a user