You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Call isGuest correctly
This commit is contained in:
@@ -1193,7 +1193,7 @@ export default React.createClass({
|
|||||||
room_id: localStorage.getItem('mx_last_room_id'),
|
room_id: localStorage.getItem('mx_last_room_id'),
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (MatrixClientPeg.get().isGuest) {
|
if (MatrixClientPeg.get().isGuest()) {
|
||||||
dis.dispatch({action: 'view_welcome_page'});
|
dis.dispatch({action: 'view_welcome_page'});
|
||||||
} else {
|
} else {
|
||||||
dis.dispatch({action: 'view_home_page'});
|
dis.dispatch({action: 'view_home_page'});
|
||||||
|
|||||||
Reference in New Issue
Block a user