web/statestore: clear unreads when rejecting invite or leaving room

This commit is contained in:
Tulir Asokan 2025-01-05 01:30:42 +02:00
parent cb08f43535
commit 158745b7a0

View file

@ -315,6 +315,7 @@ export class StateStore {
} }
this.rooms.delete(roomID) this.rooms.delete(roomID)
changedRoomListEntries.set(roomID, null) changedRoomListEntries.set(roomID, null)
this.#applyUnreadModification(null, this.roomListEntries.get(roomID))
} }
let updatedRoomList: RoomListEntry[] | undefined let updatedRoomList: RoomListEntry[] | undefined