mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-08 05:36:13 +02:00
Merge pull request #4994 from matrix-org/t3chguy/room-list/14487
When removing a filter condition, try recalculate in case it wasn't last
This commit is contained in:
commit
dcc59198be
@ -158,6 +158,7 @@ export class Algorithm extends EventEmitter {
|
||||
filterCondition.off(FILTER_CHANGED, this.handleFilterChange.bind(this));
|
||||
if (this.allowedByFilter.has(filterCondition)) {
|
||||
this.allowedByFilter.delete(filterCondition);
|
||||
this.recalculateFilteredRooms();
|
||||
|
||||
// If we removed the last filter, tell consumers that we've "updated" our filtered
|
||||
// view. This will trick them into getting the complete room list.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user