Merge pull request #6580 from Ocelot-Social-Community/chat-last-seen-webapp

feat(webapp): chat last seen in webapp
This commit is contained in:
Ulf Gebhardt 2023-07-17 10:54:41 +02:00 committed by GitHub
commit 32eff1eab2
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
}
}
`