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