Avoid redundant notification after creating the ChannelList when not authenticated

Nathan Sobo and Max Brunsfeld created

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

Change summary

zed/src/channel.rs | 3 +++
1 file changed, 3 insertions(+)

Detailed changes

zed/src/channel.rs 🔗

@@ -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;