fixed message disposal on channel removal
This commit is contained in:
parent
f039b9a6e1
commit
61dbde2ad5
1 changed files with 3 additions and 0 deletions
|
@ -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}"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue