mirror of https://github.com/vector-im/riot-web
Call isGuest correctly
parent
cf21ca2f21
commit
5977859dd9
|
@ -1193,7 +1193,7 @@ export default React.createClass({
|
|||
room_id: localStorage.getItem('mx_last_room_id'),
|
||||
});
|
||||
} else {
|
||||
if (MatrixClientPeg.get().isGuest) {
|
||||
if (MatrixClientPeg.get().isGuest()) {
|
||||
dis.dispatch({action: 'view_welcome_page'});
|
||||
} else {
|
||||
dis.dispatch({action: 'view_home_page'});
|
||||
|
|
Loading…
Reference in New Issue