feat(channels): select channel and composer focus after create-channel (v0.8.420)
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user