feat(ui-flow): composer focus after guild emoji IPC (Phase 541)

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

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 12:54:44 -04:00
co-authored by Cursor
parent 42c65609bd
commit 412cc17c5f
+12
View File
@@ -1294,6 +1294,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 === 'set-guild-emoji-roles') {
@@ -1324,6 +1330,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
if (t === 'remove-guild-emoji') {
await platform.removeGuildEmoji(msg.name)
pushState()
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
return true
}
if (t === 'upsert-guild-sticker') {