Merge pull request #2603 from jryans/fix-welcome

Call isGuest correctly
This commit is contained in:
J. Ryan Stinnett 2019-02-08 18:30:30 +00:00 committed by GitHub
commit 4ebe7c7e7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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