fixed message disposal on channel removal

This commit is contained in:
mb 2022-08-22 17:12:23 +03:00
parent f039b9a6e1
commit 61dbde2ad5

View file

@ -219,6 +219,9 @@ impl StorageProc {
} }
fn on_channel_remove(&mut self, id: Id) { fn on_channel_remove(&mut self, id: Id) {
for message_id in self.list(format!("/messages/{id}/")) {
self.remove(format!("/messages/{id}/{message_id}"))
}
self.remove(format!("/channels/{id}")) self.remove(format!("/channels/{id}"))
} }