Add basic "home" screen with room list

This commit is contained in:
N-Pex 2021-02-09 12:37:56 +01:00
parent c489d58a69
commit 9c9619fe1c
5 changed files with 24 additions and 9 deletions

View file

@ -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;