feat(ui-flow): pass desired vote state for DM poll votes

Forward optional `voted` intent from renderer `vote-dm-poll` IPC payloads
to platform so vote application stays deterministic and idempotent.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-02 03:58:05 -04:00
co-authored by Cursor
parent 607d5fde6c
commit 5450b0f4b3
2 changed files with 2 additions and 2 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`, `close-dm-poll` -> `dm-poll-closed`, and `delete-dm-poll` -> `dm-poll-deleted`.
**v0.8.638 (Phase 659):** Added DM poll IPC routes: `vote-dm-poll` (optional `voted` desired-state) -> `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.
+1 -1
View File
@@ -1014,7 +1014,7 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
return true
}
if (t === 'vote-dm-poll') {
const out = await platform.voteDmPoll(msg.messageId, msg.optionIndex)
const out = await platform.voteDmPoll(msg.messageId, msg.optionIndex, msg.voted)
send({ type: 'dm-poll-voted', messageId: msg.messageId, optionIndex: msg.optionIndex, result: out })
pushState()
return true