feat(ui-flow): add edit-dm-poll IPC dispatch

Expose `edit-dm-poll` to route pre-vote poll edits from the renderer to
platform `editDmPoll`, returning a `dm-poll-edited` event for UI updates.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-02 03:27:17 -04:00
co-authored by Cursor
parent e1c78e296b
commit a7cdd19c3f
2 changed files with 10 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 `vote-dm-poll` IPC route -> `dm-poll-voted`, mapping UI poll option clicks to platform `voteDmPoll`.
**v0.8.638 (Phase 659):** Added DM poll IPC routes: `vote-dm-poll` -> `dm-poll-voted` and `edit-dm-poll` -> `dm-poll-edited` for pre-vote poll edits.
**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.
+9
View File
@@ -1019,6 +1019,15 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState()
return true
}
if (t === 'edit-dm-poll') {
const out = await platform.editDmPoll(msg.messageId, {
question: msg.question,
options: msg.options
})
send({ type: 'dm-poll-edited', messageId: msg.messageId, result: out })
pushState()
return true
}
if (t === 'stage-attachment') {
const att = await platform.stageAttachment({
data: fromBase64(msg.dataBase64),