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