feat(ui-flow): composer focus after guild sticker IPC (Phase 542)

Restore message composer focus after upsert-guild-sticker and
remove-guild-sticker handlers complete.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 13:02:10 -04:00
co-authored by Cursor
parent 412cc17c5f
commit 87d18f9fb5
+12
View File
@@ -1347,6 +1347,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
image: normalizeEmojiImage(msg.image)
})
pushState()
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
return true
}
if (t === 'upsert-sticker-pack') {
@@ -1369,6 +1375,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
if (t === 'remove-guild-sticker') {
await platform.removeGuildSticker(msg.name)
pushState()
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
return true
}
if (t === 'upsert-guild-sound') {