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