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

Commit

Permalink
Don't re-sort rooms on no-op RoomUpdateCause.PossibleTagChange (#7053)
Browse files Browse the repository at this point in the history
* Don't re-sort rooms on no-op RoomUpdateCause.PossibleTagChange

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

Co-authored-by: Travis Ralston <travpc@gmail.com>

Co-authored-by: Travis Ralston <travpc@gmail.com>
Co-authored-by: Travis Ralston <travisr@matrix.org>
  • Loading branch information
3 people committed Nov 2, 2021
1 parent c9619bf commit 74376f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stores/room-list/algorithms/Algorithm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 74376f9

Please sign in to comment.