mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 02:12:38 +01:00
close modal stack on logout
This commit is contained in:
parent
09996b9606
commit
21c2d8204b
@ -1,6 +1,7 @@
|
||||
import type { APIUser, Snowflake } from "@spacebarchat/spacebar-api-types/v9";
|
||||
import { action, computed, makeAutoObservable, observable } from "mobx";
|
||||
import secureLocalStorage from "react-secure-storage";
|
||||
import { modalController } from "../controllers/modals";
|
||||
import Logger from "../utils/Logger";
|
||||
import REST from "../utils/REST";
|
||||
import { isTauri } from "../utils/Utils";
|
||||
@ -161,6 +162,7 @@ export default class AppStore {
|
||||
this.isAppLoading = false;
|
||||
this.isGatewayReady = true;
|
||||
secureLocalStorage.clear();
|
||||
modalController.closeAll();
|
||||
}
|
||||
|
||||
@action
|
||||
|
Loading…
Reference in New Issue
Block a user