Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 74376f9

Browse files
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 <[email protected]> Co-authored-by: Travis Ralston <[email protected]> Co-authored-by: Travis Ralston <[email protected]>
1 parent c9619bf commit 74376f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stores/room-list/algorithms/Algorithm.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,8 @@ export class Algorithm extends EventEmitter {
722722
cause = RoomUpdateCause.Timeline;
723723
didTagChange = true;
724724
} else {
725-
cause = RoomUpdateCause.Timeline;
725+
// This is a tag change update and no tags were changed, nothing to do!
726+
return false;
726727
}
727728

728729
if (didTagChange && isSticky) {

0 commit comments

Comments
 (0)