1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Update the filtering for the right tag

This commit is contained in:
Travis Ralston
2020-06-24 10:36:43 -06:00
parent f93d67fc65
commit c047a76f1d

View File

@@ -217,7 +217,7 @@ export class Algorithm extends EventEmitter {
// a room while filtering and it'll disappear. We don't update the filter earlier in // a room while filtering and it'll disappear. We don't update the filter earlier in
// this function simply because we don't have to. // this function simply because we don't have to.
this.recalculateFilteredRoomsForTag(tag); this.recalculateFilteredRoomsForTag(tag);
if (lastStickyRoom && lastStickyRoom.tag !== tag) this.recalculateFilteredRoomsForTag(tag); if (lastStickyRoom && lastStickyRoom.tag !== tag) this.recalculateFilteredRoomsForTag(lastStickyRoom.tag);
this.recalculateStickyRoom(); this.recalculateStickyRoom();
// Finally, trigger an update // Finally, trigger an update