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