From f8fb45912d97419c892e07e39faf8dc3b68acb49 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 24 Aug 2021 17:18:40 -0600 Subject: [PATCH] Avoid redundant notification after creating the ChannelList when not authenticated Co-Authored-By: Max Brunsfeld --- zed/src/channel.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zed/src/channel.rs b/zed/src/channel.rs index 2eea0d2a99..a70b7dd068 100644 --- a/zed/src/channel.rs +++ b/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;