Avoid redundant notification after creating the ChannelList when not authenticated

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo 2021-08-24 17:18:40 -06:00
parent ff966c8d04
commit f8fb45912d

View File

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