Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-06-07 15:57:43 +07:00
committed by GitHub
parent c56c70c960
commit 3c5648c87f
11 changed files with 17 additions and 10 deletions
@@ -58,6 +58,9 @@
},
(res) => {
channel = res[0]
if (channel !== undefined) {
notificationClient.forceRead(channel._id, channel._class)
}
}
)
@@ -77,9 +80,6 @@
async function selectHandler (e: CustomEvent): Promise<void> {
currentMessage = e.detail
if (channel !== undefined) {
await notificationClient.read(channel._id)
}
}
const settingsQuery = createQuery()
@@ -73,7 +73,7 @@
},
objectId
)
await notificationClient.read(channel._id)
await notificationClient.forceRead(channel._id, channel._class)
objectId = generateId()
dispatch('close')
}
@@ -92,7 +92,7 @@
.map((m) => m.trim())
.filter((m) => m.length)
})
await notificationClient.read(channel._id)
await notificationClient.forceRead(channel._id, channel._class)
for (const attachment of attachments) {
await client.addCollection(
attachmentP.class.Attachment,