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:
Raven Scott
2026-05-24 13:10:06 -04:00
co-authored by Cursor
parent 87d18f9fb5
commit 4f0eac806a
+12
View File
@@ -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') {