Make sure to reload rooms on self membership updates

This commit is contained in:
N Pex 2022-04-20 14:16:01 +00:00
parent 315e3f6bd5
commit 5882eef0db
3 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@
<v-list-item-avatar size="40" color="#e0e0e0">
<v-img :src="room.avatar" />
</v-list-item-avatar>
<div class="room-list-notification-count">
<div class="room-list-notification-count" v-if="notificationCount(room) > 0">
{{ notificationCount(room) }}
</div>
<v-list-item-content>

View file

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

View file

@ -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() {