Fix channel collapsing

This commit is contained in:
Conrad Irwin 2023-10-25 09:27:17 +02:00
parent 6f173c64b3
commit 70eeefa1f8
2 changed files with 15 additions and 11 deletions

View file

@ -188,13 +188,6 @@ impl ChannelStore {
self.client.clone()
}
pub fn channel_has_children(&self) -> bool {
self.channel_index
.by_id()
.iter()
.any(|(_, channel)| channel.parent_path.contains(&channel.id))
}
/// Returns the number of unique channels in the store
pub fn channel_count(&self) -> usize {
self.channel_index.by_id().len()