fix needing to leave a room twice

This commit is contained in:
7w1 committed 2026-07-19 22:41:49 -05:00
1 parent 7911a911a0
commit 9b4548c459
2 files changed
+4

No files matched your search

+3
View File
@@ -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>(),
+1
View File
@@ -991,6 +991,7 @@ export class SlidingSyncManager {
} else if (removedSpaceSubscription || removedSidebarSubscription) {
this.queueRoomSubscriptionSync();
}
this.mx.store.removeRoom(roomId);
}
}