Merge branch 'master' into unread-rooms-query

This commit is contained in:
Ulf Gebhardt 2023-07-17 11:44:45 +02:00 committed by GitHub
commit ec07ddfec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -254,6 +254,7 @@ export default {
const msgs = []
;[...this.messages, ...Message].forEach((m) => {
m.date = new Date(m.date).toDateString()
msgs[m.indexId] = m
})
this.messages = msgs.filter(Boolean)

View File

@ -7,11 +7,17 @@ export const messageQuery = () => {
_id
id
indexId
senderId
content
senderId
author {
id
}
username
avatar
date
saved
distributed
seen
}
}
`