Merge pull request #6581 from Ocelot-Social-Community/fix-room-image

fix(webapp): show room header images.
This commit is contained in:
Ulf Gebhardt 2023-07-17 00:55:19 +02:00 committed by GitHub
commit ddc864a433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,10 +188,10 @@ export default {
},
methods: {
async fetchMessages({ room, options = {} }) {
if (this.selectedRoom !== room.id) {
if (this.selectedRoom?.id !== room.id) {
this.messages = []
this.messagePage = 0
this.selectedRoom = room.id
this.selectedRoom = room
}
this.messagesLoaded = options.refetch ? this.messagesLoaded : false
const offset = (options.refetch ? 0 : this.messagePage) * this.messagePageSize