feat(ui-flow): composer focus after delete and reorder guild roles

Emit composer-focus-channel when custom roles are deleted or reordered.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 13:44:31 -04:00
co-authored by Cursor
parent 3bb63d4b82
commit 73d315b745
+12
View File
@@ -1751,11 +1751,23 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
}
if (t === 'delete-guild-custom-role') {
await platform.deleteGuildCustomRole(msg.roleId)
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
pushState()
return true
}
if (t === 'reorder-guild-custom-roles') {
await platform.reorderGuildCustomRoles(msg.roleIds || [])
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
pushState()
return true
}