LifeCycle onLoggedOut unmount before stopping client

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2019-10-25 16:37:57 +01:00
parent 3c14aed534
commit 821ad5703f
1 changed files with 1 additions and 1 deletions

View File

@ -610,7 +610,7 @@ export function onLoggedOut() {
// Ensure that we dispatch a view change **before** stopping the client so
// so that React components unmount first. This avoids React soft crashes
// that can occur when components try to use a null client.
dis.dispatch({action: 'on_logged_out'});
dis.dispatch({action: 'on_logged_out'}, true);
stopMatrixClient();
_clearStorage().done();
}