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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user