Call isGuest correctly

pull/21833/head
J. Ryan Stinnett 2019-02-08 15:43:17 +00:00
parent cf21ca2f21
commit 5977859dd9
1 changed files with 1 additions and 1 deletions

View File

@ -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'});