mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge branch 'master' into unread-rooms-query
This commit is contained in:
commit
ec07ddfec2
@ -254,6 +254,7 @@ export default {
|
|||||||
|
|
||||||
const msgs = []
|
const msgs = []
|
||||||
;[...this.messages, ...Message].forEach((m) => {
|
;[...this.messages, ...Message].forEach((m) => {
|
||||||
|
m.date = new Date(m.date).toDateString()
|
||||||
msgs[m.indexId] = m
|
msgs[m.indexId] = m
|
||||||
})
|
})
|
||||||
this.messages = msgs.filter(Boolean)
|
this.messages = msgs.filter(Boolean)
|
||||||
|
|||||||
@ -7,11 +7,17 @@ export const messageQuery = () => {
|
|||||||
_id
|
_id
|
||||||
id
|
id
|
||||||
indexId
|
indexId
|
||||||
senderId
|
|
||||||
content
|
content
|
||||||
|
senderId
|
||||||
author {
|
author {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
username
|
||||||
|
avatar
|
||||||
|
date
|
||||||
|
saved
|
||||||
|
distributed
|
||||||
|
seen
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user