Fix visibility restore at WFC exit
This commit is contained in:
parent
0ef3df047a
commit
c7568ac897
|
@ -89,6 +89,7 @@ exports.getModule = class WaitingForCallerModule extends MenuModule {
|
|||
toggleVisible: (formData, extraArgs, cb) => {
|
||||
const visible = this.client.user.isVisible();
|
||||
this.client.user.setVisibility(!visible);
|
||||
this.visibilityToggled = true; // we won't restore it in this case
|
||||
return this._refreshAll(cb);
|
||||
},
|
||||
displayHelp: (formData, extraArgs, cb) => {
|
||||
|
@ -366,8 +367,10 @@ exports.getModule = class WaitingForCallerModule extends MenuModule {
|
|||
}
|
||||
|
||||
_restoreOpVisibility() {
|
||||
if (!this.visibilityToggled) {
|
||||
this.client.user.setVisibility(this.restoreUserIsVisible);
|
||||
}
|
||||
}
|
||||
|
||||
_startRefreshing() {
|
||||
if (this.mainRefreshTimer) {
|
||||
|
|
Loading…
Reference in New Issue