1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Revert notification toolbar setting

It isn't a setting.

Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Travis Ralston
2017-11-08 17:06:36 -07:00
parent 289b0c2b6a
commit c7d8f3931f
3 changed files with 4 additions and 13 deletions

View File

@@ -211,15 +211,15 @@ const Notifier = {
});
// update the info to localStorage for persistent settings
if (persistent && SettingsStore.isLevelSupported(SettingLevel.DEVICE)) {
return SettingsStore.setValue("notificationToolbarHidden", null, SettingLevel.DEVICE, hidden);
if (persistent && global.localStorage) {
global.localStorage.setItem("notifications_hidden", hidden);
}
},
isToolbarHidden: function() {
// Check localStorage for any such meta data
if (SettingsStore.isLevelSupported(SettingLevel.DEVICE)) {
return SettingsStore.getValue("notificationToolbarHidden");
if (global.localStorage) {
return global.localStorage.getItem("notifications_hidden") === "true";
}
return this.toolbarHidden;