Skip to content

Commit

Permalink
Merge pull request #6580 from Ocelot-Social-Community/chat-last-seen-…
Browse files Browse the repository at this point in the history
…webapp

feat(webapp): chat last seen in webapp
  • Loading branch information
ulfgebhardt authored Jul 17, 2023
2 parents 640e713 + 9ab8fd7 commit 32eff1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions webapp/components/Chat/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion webapp/graphql/Messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ export const messageQuery = () => {
_id
id
indexId
senderId
content
senderId
author {
id
}
username
avatar
date
saved
distributed
seen
}
}
`
Expand Down

0 comments on commit 32eff1e

Please # to comment.