Added logout in loading screen
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import initMatrix from '../initMatrix';
|
||||
|
||||
function logout() {
|
||||
const mx = initMatrix.matrixClient;
|
||||
mx.stopClient();
|
||||
mx.logout().then(() => {
|
||||
mx.clearStores();
|
||||
window.localStorage.clear();
|
||||
|
||||
Reference in New Issue
Block a user