You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
persistent = true, as default param in setToolbarHidden() method
Signed-off-by: Minhaz A V <minhazav@gmail.com>
This commit is contained in:
@ -163,7 +163,7 @@ var Notifier = {
|
|||||||
action: "notifier_enabled",
|
action: "notifier_enabled",
|
||||||
value: false
|
value: false
|
||||||
});
|
});
|
||||||
self.setToolbarHidden(true);
|
self.setToolbarHidden(true, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (result === 'default') {
|
if (result === 'default') {
|
||||||
@ -216,7 +216,7 @@ var Notifier = {
|
|||||||
return enabled === 'true';
|
return enabled === 'true';
|
||||||
},
|
},
|
||||||
|
|
||||||
setToolbarHidden: function(hidden, persistent) {
|
setToolbarHidden: function(hidden, persistent = true) {
|
||||||
this.toolbarHidden = hidden;
|
this.toolbarHidden = hidden;
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: "notifier_enabled",
|
action: "notifier_enabled",
|
||||||
|
Reference in New Issue
Block a user