Fix stuck on room loading

For fresh account, when "/room" ("/join" worked). Issue #76.
This commit is contained in:
N-Pex 2021-02-25 14:21:21 +01:00
parent b9783403fc
commit d32bc1134d
2 changed files with 11 additions and 6 deletions

View file

@ -418,7 +418,9 @@ export default {
return this.$matrix.currentRoom;
},
roomId() {
if (!this.$matrix.ready) {
if (!this.$matrix.ready && this.currentUser) {
// If we have a user already, wait for ready state. If not, we
// dont want to return here, because we want to redirect to "join".
return null; // Not ready yet...
}
if (this.room) {