1
0
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:
Puyodead1 2023-12-23 23:31:26 -05:00
parent 09996b9606
commit 21c2d8204b
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -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