mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge branch 'unread-rooms-query' into chat-notifications
This commit is contained in:
commit
fb45ac107a
@ -374,7 +374,7 @@ describe('Room', () => {
|
||||
).resolves.toMatchObject({
|
||||
data: {
|
||||
UnreadRooms: 2,
|
||||
}
|
||||
},
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -7,11 +7,17 @@ export const messageQuery = () => {
|
||||
_id
|
||||
id
|
||||
indexId
|
||||
senderId
|
||||
content
|
||||
senderId
|
||||
author {
|
||||
id
|
||||
}
|
||||
username
|
||||
avatar
|
||||
date
|
||||
saved
|
||||
distributed
|
||||
seen
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user