do not await for mark messages as seen

This commit is contained in:
Moriz Wahl 2023-07-17 19:52:41 +02:00
parent 27fe3068e0
commit 4b2fae9a2c

View File

@ -260,12 +260,14 @@ export default {
const newMsgIds = Message.filter((m) => m.seen === false).map((m) => m.id)
if (newMsgIds.length) {
await this.$apollo.mutate({
this.$apollo
.mutate({
mutation: markMessagesAsSeen(),
variables: {
messageIds: newMsgIds,
},
})
.then(() => {
this.$apollo
.query({
query: unreadRoomsQuery(),
@ -274,6 +276,7 @@ export default {
.then(({ data: { UnreadRooms } }) => {
this.commitUnreadRoomCount(UnreadRooms)
})
})
}
const msgs = []