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