feat(channels): select channel and composer focus after create-channel (v0.8.420)

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 00:53:15 -04:00
co-authored by Cursor
parent ba00355178
commit c995bde7a1
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -965,11 +965,13 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
return true
}
if (t === 'create-channel') {
await platform.createChannel({
const channel = await platform.createChannel({
name: msg.name,
type: msg.channelType,
parentId: msg.parentId
})
await platform.selectChannel(channel.id)
send({ type: 'composer-focus-channel', channelId: channel.id })
pushState()
return true
}