mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-06 01:25:31 +00:00
Merge branch 'master' into chat-pagniate-rooms
This commit is contained in:
commit
121093342b
@ -232,10 +232,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async fetchMessages({ room, options = {} }) {
|
async fetchMessages({ room, options = {} }) {
|
||||||
if (this.selectedRoom !== room.id) {
|
if (this.selectedRoom?.id !== room.id) {
|
||||||
this.messages = []
|
this.messages = []
|
||||||
this.messagePage = 0
|
this.messagePage = 0
|
||||||
this.selectedRoom = room.id
|
this.selectedRoom = room
|
||||||
}
|
}
|
||||||
this.messagesLoaded = options.refetch ? this.messagesLoaded : false
|
this.messagesLoaded = options.refetch ? this.messagesLoaded : false
|
||||||
const offset = (options.refetch ? 0 : this.messagePage) * this.messagePageSize
|
const offset = (options.refetch ? 0 : this.messagePage) * this.messagePageSize
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user