feat(v0.8.281): emit open-notification-opened for desktop dismiss

After openNotificationTarget, notify UI so desktop can clear channel
unread desktop notification batch.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-23 09:18:58 -04:00
co-authored by Cursor
parent cd32dbb82a
commit 20dfeb5156
+6
View File
@@ -758,6 +758,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
messageId: msg.messageId messageId: msg.messageId
}) })
pushState() pushState()
send({
type: 'open-notification-opened',
guildId: msg.guildId || platform.guild?.guild?.id || null,
channelId: msg.channelId || result.channelId || null,
messageId: msg.messageId || null
})
send({ type: 'open-notification-result', ...result }) send({ type: 'open-notification-result', ...result })
return true return true
} }