mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-14 03:00:29 +03:00
Added logout in loading screen
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
8fb9365eaa
commit
1fa1496d7f
3 changed files with 14 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ import initMatrix from '../initMatrix';
|
|||
|
||||
function logout() {
|
||||
const mx = initMatrix.matrixClient;
|
||||
mx.stopClient();
|
||||
mx.logout().then(() => {
|
||||
mx.clearStores();
|
||||
window.localStorage.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue