This commit is contained in:
Ren Amamiya
2026-04-01 09:52:43 +07:00
parent cdba276a35
commit e20167333b
2 changed files with 22 additions and 0 deletions

View File

@@ -578,6 +578,10 @@ impl ChatRegistry {
/// Reset the registry.
pub fn reset(&mut self, cx: &mut Context<Self>) {
self.rooms.clear();
self.trashes.update(cx, |this, cx| {
this.clear();
cx.notify();
});
cx.notify();
}