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:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
|
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.
|
**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.
|
||||||
|
|
||||||
|
|||||||
@@ -1034,6 +1034,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
|||||||
pushState()
|
pushState()
|
||||||
return true
|
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') {
|
if (t === 'stage-attachment') {
|
||||||
const att = await platform.stageAttachment({
|
const att = await platform.stageAttachment({
|
||||||
data: fromBase64(msg.dataBase64),
|
data: fromBase64(msg.dataBase64),
|
||||||
|
|||||||
Reference in New Issue
Block a user