Fix room not loaded when joining

This commit is contained in:
N-Pex 2020-11-25 15:07:51 +01:00
parent 29acde8604
commit 0e8039f02d
2 changed files with 21 additions and 5 deletions

View file

@ -50,7 +50,7 @@ export default {
return this.$matrix.matrixClient.joinRoom(this.roomId);
})
.then((room) => {
this.$matrix.setCurrentRoomId(room.roomId);
this.$matrix.setCurrentRoom(room);
this.loading = false;
this.loadingMessage = null;
this.$router.replace({ name: "Chat" });