Avoid redundant notification after creating the ChannelList when not authenticated
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
co-authored by
Max Brunsfeld
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;
|
||||
|
||||
Reference in New Issue
Block a user