mirror of
https://github.com/vector-im/element-call.git
synced 2026-11-25 09:51:09 +08:00
Add warn log to logout no case.
This commit is contained in:
@@ -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