fix: strip unknown channels from categories (fixes #201)

This commit is contained in:
Paul Makles
2022-09-12 21:39:29 +01:00
parent 044d82d566
commit 86ad72b426
5 changed files with 12 additions and 41 deletions

View File

@@ -1,5 +1,3 @@
use std::collections::HashSet;
use crate::models::channel::{Channel, FieldsChannel, PartialChannel};
use crate::{AbstractAttachment, AbstractChannel, Error, OverrideField, Result};
@@ -83,8 +81,4 @@ impl AbstractChannel for DummyDb {
info!("Updating permissions for role {role} in {channel} with {permissions:?}");
Ok(())
}
async fn check_channels_exist(&self, _channels: &HashSet<String>) -> Result<bool> {
Ok(true)
}
}