mirror of
https://github.com/element-hq/element-call.git
synced 2026-11-23 15:30:02 +00:00
Add warn log to logout no case.
This commit is contained in:
1 parent
c096332c8f
commit
23a8d559e9
1 file changed
+4
-1
@@ -110,7 +110,10 @@ export function createStandaloneClientSession$(
|
||||
},
|
||||
logout: async (): Promise<void> => {
|
||||
const current = client();
|
||||
if (!current) return;
|
||||
if (!current) {
|
||||
logger.warn("[StandaloneClientSession] Calling logout but with no curent client.")
|
||||
return
|
||||
};
|
||||
|
||||
await current.logout(true);
|
||||
await current.clearStores();
|
||||
|
||||
Reference in new issue
Block a user