You've already forked matrix-react-sdk
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user