mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-27 12:26:29 -08:00
fix needing to leave a room twice
This commit is contained in:
1 parent
7911a911a0
commit
9b4548c459
2 files changed
+4
No files matched your search
@@ -64,6 +64,9 @@ function makeMockMx(overrides: Record<string, unknown> = {}) {
|
||||
getJoinedRooms: vi.fn<() => Promise<{ joined_rooms: string[] }>>().mockResolvedValue({
|
||||
joined_rooms: [],
|
||||
}),
|
||||
store: {
|
||||
removeRoom: vi.fn<() => void>(),
|
||||
},
|
||||
on: vi.fn<() => void>(),
|
||||
off: vi.fn<() => void>(),
|
||||
removeListener: vi.fn<() => void>(),
|
||||
|
||||
@@ -991,6 +991,7 @@ export class SlidingSyncManager {
|
||||
} else if (removedSpaceSubscription || removedSidebarSubscription) {
|
||||
this.queueRoomSubscriptionSync();
|
||||
}
|
||||
this.mx.store.removeRoom(roomId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user