feat(ui-flow): handle reorder-channels IPC from desktop UI

Route sidebar drag-reorder to platform.reorderChannelsInParent and
refresh view state after sibling positions update.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 21:03:28 -04:00
co-authored by Cursor
parent 4e66fd3e31
commit 6ef43b0893
+8
View File
@@ -743,6 +743,14 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState()
return true
}
if (t === 'reorder-channels') {
await platform.reorderChannelsInParent({
parentId: msg.parentId ?? null,
channelIds: msg.channelIds || []
})
pushState()
return true
}
if (t === 'toggle-reaction') {
await platform.toggleReaction(msg.messageId, msg.emoji)
pushState()