From 74376f989e8da984909ca08afc853ff20a08ae3c Mon Sep 17 00:00:00 2001 From: Brad Murray Date: Tue, 2 Nov 2021 16:44:54 -0400 Subject: [PATCH] Don't re-sort rooms on no-op RoomUpdateCause.PossibleTagChange (#7053) * Don't re-sort rooms on no-op RoomUpdateCause.PossibleTagChange * Update src/stores/room-list/algorithms/Algorithm.ts Co-authored-by: Travis Ralston Co-authored-by: Travis Ralston Co-authored-by: Travis Ralston --- src/stores/room-list/algorithms/Algorithm.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stores/room-list/algorithms/Algorithm.ts b/src/stores/room-list/algorithms/Algorithm.ts index 5e98ef37ff..754e1c1d94 100644 --- a/src/stores/room-list/algorithms/Algorithm.ts +++ b/src/stores/room-list/algorithms/Algorithm.ts @@ -722,7 +722,8 @@ export class Algorithm extends EventEmitter { cause = RoomUpdateCause.Timeline; didTagChange = true; } else { - cause = RoomUpdateCause.Timeline; + // This is a tag change update and no tags were changed, nothing to do! + return false; } if (didTagChange && isSticky) {