mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-25 08:21:41 +02:00
Destroy old CommunityFilterConditions when they aren't needed
Fixes https://github.com/vector-im/riot-web/issues/13971
This commit is contained in:
parent
7549d7d98a
commit
db23aaad83
@ -74,6 +74,11 @@ export class TagWatcher {
|
||||
this.store.removeFilter(filter);
|
||||
}
|
||||
|
||||
// Destroy any and all old filter conditions to prevent resource leaks
|
||||
for (const filter of this.filters.values()) {
|
||||
filter.destroy();
|
||||
}
|
||||
|
||||
this.filters = newFilters;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user