mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fix(webapp): show room header images.
This commit is contained in:
parent
b933305cad
commit
5dfdcc9bc2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user