feat(ui-flow): receipt-modal-open and clear-delivery-receipts IPC (v0.8.663)
Blur composer on receipt modal open and route clear receipts to platform. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -2409,6 +2409,22 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
|||||||
send({ type: 'worker-modal-opened' })
|
send({ type: 'worker-modal-opened' })
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if (t === 'receipt-modal-open') {
|
||||||
|
pushState()
|
||||||
|
send({ type: 'receipt-modal-opened' })
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if (t === 'clear-delivery-receipts') {
|
||||||
|
await platform.clearAutomationDeliveryReceipts()
|
||||||
|
pushState()
|
||||||
|
if (platform.mode === 'guild' && platform.activeChannelId) {
|
||||||
|
send({
|
||||||
|
type: 'composer-focus-channel',
|
||||||
|
channelId: platform.activeChannelId
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
if (t === 'uninstall-bot') {
|
if (t === 'uninstall-bot') {
|
||||||
await platform.uninstallBot(msg.botId)
|
await platform.uninstallBot(msg.botId)
|
||||||
pushState()
|
pushState()
|
||||||
|
|||||||
Reference in New Issue
Block a user