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 <travpc@gmail.com>

Co-authored-by: Travis Ralston <travpc@gmail.com>
Co-authored-by: Travis Ralston <travisr@matrix.org>
pull/21833/head
Brad Murray 2021-11-02 16:44:54 -04:00 committed by GitHub
parent c9619bfe48
commit 74376f989e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -722,7 +722,8 @@ export class Algorithm extends EventEmitter {
cause = RoomUpdateCause.Timeline; cause = RoomUpdateCause.Timeline;
didTagChange = true; didTagChange = true;
} else { } else {
cause = RoomUpdateCause.Timeline; // This is a tag change update and no tags were changed, nothing to do!
return false;
} }
if (didTagChange && isSticky) { if (didTagChange && isSticky) {