You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-27 04:21:52 +03:00
setToolbarHidden(false) if setEnabled has enable = true
Signed-off-by: Minhaz A V <minhazav@gmail.com>
This commit is contained in:
@ -150,6 +150,7 @@ var Notifier = {
|
|||||||
value: true
|
value: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
this.setToolbarHidden(false);
|
||||||
} else {
|
} else {
|
||||||
if (!global.localStorage) return;
|
if (!global.localStorage) return;
|
||||||
global.localStorage.setItem('notifications_enabled', 'false');
|
global.localStorage.setItem('notifications_enabled', 'false');
|
||||||
@ -194,7 +195,7 @@ var Notifier = {
|
|||||||
|
|
||||||
// update the info to localStorage for persistent settings
|
// update the info to localStorage for persistent settings
|
||||||
if (persistent && global.localStorage) {
|
if (persistent && global.localStorage) {
|
||||||
global.localStorage.setItem('notifications_hidden', 'true');
|
global.localStorage.setItem('notifications_hidden', hidden);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user