Add basic "home" screen with room list
This commit is contained in:
parent
c489d58a69
commit
9c9619fe1c
5 changed files with 24 additions and 9 deletions
|
|
@ -121,7 +121,11 @@ export default {
|
|||
this.loading = true;
|
||||
this.$store.dispatch("auth/login", user).then(
|
||||
() => {
|
||||
this.$navigation.push({name: "Chat", params: { roomId: util.sanitizeRoomId(this.$matrix.currentRoomId) }}, -1);
|
||||
if (this.$matrix.currentRoomId) {
|
||||
this.$navigation.push({name: "Chat", params: { roomId: util.sanitizeRoomId(this.$matrix.currentRoomId) }}, -1);
|
||||
} else {
|
||||
this.$navigation.push({name: "Home"}, -1);
|
||||
}
|
||||
},
|
||||
(error) => {
|
||||
this.loading = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue