Iterate to match design

This commit is contained in:
Michael Telatynski 2020-09-08 12:01:44 +01:00
parent 0fe6ce1842
commit ef0843d4ad
3 changed files with 53 additions and 8 deletions

View file

@ -23,7 +23,6 @@ import defaultDispatcher from "../dispatcher/dispatcher";
import SettingsStore from "../settings/SettingsStore";
import WidgetEchoStore from "../stores/WidgetEchoStore";
import WidgetUtils from "../utils/WidgetUtils";
import {IRRELEVANT_ROOM} from "../settings/WatchManager";
import {SettingLevel} from "../settings/SettingLevel";
interface IState {}
@ -55,7 +54,7 @@ export default class WidgetStore extends AsyncStoreWithClient<IState> {
private constructor() {
super(defaultDispatcher, {});
SettingsStore.watchSetting("Widgets.pinned", IRRELEVANT_ROOM, this.onPinnedWidgetsChange);
SettingsStore.watchSetting("Widgets.pinned", null, this.onPinnedWidgetsChange);
WidgetEchoStore.on("update", this.onWidgetEchoStoreUpdate);
}