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:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user