From d74e803fa92f4bca1fb7207e58d21afe3ca9ff7f Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 14 Jul 2020 12:40:48 -0600 Subject: [PATCH] Remove potential source of room duplication issues This is an estimated fix as the problem cannot be easily identified. We don't appear to need these lines, unlike what the comment implies. --- src/stores/room-list/algorithms/Algorithm.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/stores/room-list/algorithms/Algorithm.ts b/src/stores/room-list/algorithms/Algorithm.ts index 3cf71f1ca8..61e602bfa9 100644 --- a/src/stores/room-list/algorithms/Algorithm.ts +++ b/src/stores/room-list/algorithms/Algorithm.ts @@ -711,11 +711,6 @@ export class Algorithm extends EventEmitter { if (!algorithm) throw new Error(`No algorithm for ${rmTag}`); await algorithm.handleRoomUpdate(room, RoomUpdateCause.RoomRemoved); this.cachedRooms[rmTag] = algorithm.orderedRooms; - - // Later on we won't update the filtered rooms or sticky room for removed - // tags, so do so now. - this.recalculateFilteredRoomsForTag(rmTag); - this.recalculateStickyRoom(rmTag); } for (const addTag of diff.added) { if (!window.mx_QuietRoomListLogging) {