Added logout in loading screen

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-10-27 17:08:26 +05:30
parent 8fb9365eaa
commit 1fa1496d7f
3 changed files with 14 additions and 0 deletions

View file

@ -2,6 +2,7 @@ import initMatrix from '../initMatrix';
function logout() {
const mx = initMatrix.matrixClient;
mx.stopClient();
mx.logout().then(() => {
mx.clearStores();
window.localStorage.clear();