mirror of https://github.com/vector-im/riot-web
fix guest login when in a RoomView
parent
671eacaac7
commit
026a2e6c7c
|
@ -279,7 +279,12 @@ export function logout() {
|
||||||
// logout doesn't work for guest sessions
|
// logout doesn't work for guest sessions
|
||||||
// Also we sometimes want to re-log in a guest session
|
// Also we sometimes want to re-log in a guest session
|
||||||
// if we abort the login
|
// if we abort the login
|
||||||
|
|
||||||
|
// use settimeout to avoid racing with react unmounting components
|
||||||
|
// which need a valid matrixclientpeg
|
||||||
|
setTimeout(()=>{
|
||||||
onLoggedOut();
|
onLoggedOut();
|
||||||
|
}, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue