feat(ui-flow): DM rename and call IPC handlers for Phase 655 header
Wire rename-group-dm, start-dm-voice, start-dm-video, and sidebarFilterActive on open-dm so the renderer matches platform DM inbox capabilities. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
|
||||
|
||||
**v0.8.628 (Phase 655 batch 2):** IPC `rename-group-dm`, `start-dm-voice`, `start-dm-video`; `open-dm` passes `sidebarFilterActive`. See [DM_INBOX.md](../../docs/DM_INBOX.md).
|
||||
|
||||
**Phase 654 now active** with 50 swarm/repl/sync items; composer production UI (autofocus, send btn, autogrow) landed with manual agentctl + BOOT_OK verification; platform/swarm-manager changes for adaptive retry + discovery aid.
|
||||
|
||||
**v0.8.624 (Phase 652):** `export-mesh-replication-diagnostics` → `mesh-replication-diagnostics-exported`; hub subscribe + composer focus. Bundle: `npm run test:phase652-live-mesh-churn` (app repo).
|
||||
|
||||
@@ -1831,7 +1831,8 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
if (t === 'open-dm') {
|
||||
await platform.openDM({
|
||||
peerUserId: msg.peerUserId,
|
||||
peerDisplayName: msg.peerDisplayName || msg.peerUserId?.slice(0, 8)
|
||||
peerDisplayName: msg.peerDisplayName || msg.peerUserId?.slice(0, 8),
|
||||
sidebarFilterActive: !!msg.sidebarFilterActive
|
||||
})
|
||||
pushState()
|
||||
if (platform.activeChannelId) {
|
||||
@@ -1839,6 +1840,24 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
}
|
||||
return true
|
||||
}
|
||||
if (t === 'rename-group-dm') {
|
||||
await platform.renameGroupDM({
|
||||
channelId: msg.channelId,
|
||||
displayName: msg.displayName
|
||||
})
|
||||
pushState()
|
||||
return true
|
||||
}
|
||||
if (t === 'start-dm-voice') {
|
||||
const out = await platform.startDmVoiceCall()
|
||||
send({ type: 'dm-voice-call-started', ...out })
|
||||
return true
|
||||
}
|
||||
if (t === 'start-dm-video') {
|
||||
const out = await platform.startDmVideoCall()
|
||||
send({ type: 'dm-video-call-started', ...out })
|
||||
return true
|
||||
}
|
||||
if (t === 'create-group-dm') {
|
||||
await platform.createGroupDM({
|
||||
peerUserIds: msg.peerUserIds || [],
|
||||
|
||||
Reference in New Issue
Block a user