From 5882eef0dbcff636d3a1e6e18e8ddffc6b70e70b Mon Sep 17 00:00:00 2001 From: N Pex Date: Wed, 20 Apr 2022 14:16:01 +0000 Subject: [PATCH] Make sure to reload rooms on self membership updates --- src/components/RoomList.vue | 2 +- src/components/profileInfoMixin.js | 2 +- src/services/matrix.service.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/RoomList.vue b/src/components/RoomList.vue index a21f624..b78de3a 100644 --- a/src/components/RoomList.vue +++ b/src/components/RoomList.vue @@ -52,7 +52,7 @@ -
+
{{ notificationCount(room) }}
diff --git a/src/components/profileInfoMixin.js b/src/components/profileInfoMixin.js index 02bd1e5..7a9dd35 100644 --- a/src/components/profileInfoMixin.js +++ b/src/components/profileInfoMixin.js @@ -1,7 +1,7 @@ export default { computed: { user() { - if (!this.$matrix.matrixClient) { + if (!this.$matrix.ready) { return null; } return this.$matrix.matrixClient.getUser(this.$matrix.currentUserId); diff --git a/src/services/matrix.service.js b/src/services/matrix.service.js index 7031306..3a5b188 100644 --- a/src/services/matrix.service.js +++ b/src/services/matrix.service.js @@ -391,8 +391,8 @@ export default { // Invitation. Need to call "recalculate" to pick // up room name, not sure why exactly. room.recalculate(); - this.reloadRooms(); } + this.reloadRooms(); }, onSessionLoggedOut() {