mirror of https://github.com/vector-im/riot-web
Fix watching settings
An accidental variable shadowing was preventing setting watcher callbacks from being fired. Signed-off-by: Robin Townsend <robin@robin.town>pull/21833/head
parent
abfe6d85a0
commit
40d2f8228f
|
@ -63,8 +63,7 @@ export class WatchManager {
|
||||||
|
|
||||||
if (!inRoomId) {
|
if (!inRoomId) {
|
||||||
// Fire updates to all the individual room watchers too, as they probably care about the change higher up.
|
// Fire updates to all the individual room watchers too, as they probably care about the change higher up.
|
||||||
const callbacks = Array.from(roomWatchers.values()).flat(1);
|
callbacks.push(...Array.from(roomWatchers.values()).flat(1));
|
||||||
callbacks.push(...callbacks);
|
|
||||||
} else if (roomWatchers.has(IRRELEVANT_ROOM)) {
|
} else if (roomWatchers.has(IRRELEVANT_ROOM)) {
|
||||||
callbacks.push(...roomWatchers.get(IRRELEVANT_ROOM));
|
callbacks.push(...roomWatchers.get(IRRELEVANT_ROOM));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue