feat(ui-flow): composer focus after guild sound IPC (Phase 543)
Restore message composer focus after upsert-guild-sound and remove-guild-sound handlers complete. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -1392,11 +1392,23 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
audio: normalizeEmojiImage(msg.audio)
|
||||
})
|
||||
pushState()
|
||||
if (platform.mode === 'guild' && platform.activeChannelId) {
|
||||
send({
|
||||
type: 'composer-focus-channel',
|
||||
channelId: platform.activeChannelId
|
||||
})
|
||||
}
|
||||
return true
|
||||
}
|
||||
if (t === 'remove-guild-sound') {
|
||||
await platform.removeGuildSound(msg.name)
|
||||
pushState()
|
||||
if (platform.mode === 'guild' && platform.activeChannelId) {
|
||||
send({
|
||||
type: 'composer-focus-channel',
|
||||
channelId: platform.activeChannelId
|
||||
})
|
||||
}
|
||||
return true
|
||||
}
|
||||
if (t === 'play-soundboard') {
|
||||
|
||||
Reference in New Issue
Block a user