feat(ui-flow): expose delete-dm-poll IPC event

Add `delete-dm-poll` dispatch handling to invoke platform `deleteDmPoll`
and emit `dm-poll-deleted` for renderer synchronization.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-02 03:43:20 -04:00
co-authored by Cursor
parent fa714a10ee
commit 607d5fde6c
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
**v0.8.638 (Phase 659):** Added DM poll IPC routes: `vote-dm-poll` -> `dm-poll-voted`, `edit-dm-poll` -> `dm-poll-edited`, and `close-dm-poll` -> `dm-poll-closed`.
**v0.8.638 (Phase 659):** Added DM poll IPC routes: `vote-dm-poll` -> `dm-poll-voted`, `edit-dm-poll` -> `dm-poll-edited`, `close-dm-poll` -> `dm-poll-closed`, and `delete-dm-poll` -> `dm-poll-deleted`.
**v0.8.638 (Phase 658):** Added `audit-dm-thread-p2p` IPC -> `dm-thread-p2p-audit` event to expose DM-thread topic safety diagnostics from platform.
+6
View File
@@ -1034,6 +1034,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState()
return true
}
if (t === 'delete-dm-poll') {
const out = await platform.deleteDmPoll(msg.messageId)
send({ type: 'dm-poll-deleted', messageId: msg.messageId, result: out })
pushState()
return true
}
if (t === 'stage-attachment') {
const att = await platform.stageAttachment({
data: fromBase64(msg.dataBase64),