You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
fix guest login when in a RoomView
This commit is contained in:
@ -279,7 +279,12 @@ export function logout() {
|
||||
// logout doesn't work for guest sessions
|
||||
// Also we sometimes want to re-log in a guest session
|
||||
// if we abort the login
|
||||
onLoggedOut();
|
||||
|
||||
// use settimeout to avoid racing with react unmounting components
|
||||
// which need a valid matrixclientpeg
|
||||
setTimeout(()=>{
|
||||
onLoggedOut();
|
||||
}, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user