feat(ui-flow): composer focus after discovery IPC (Phase 545)

Restore message composer focus after set-discovery-listing,
update-discovery-filter, and set-discovery-tags handlers.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 13:20:21 -04:00
co-authored by Cursor
parent a0f80b52f5
commit 39cf119c85
+18
View File
@@ -97,6 +97,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
} }
if (t === 'set-discovery-listing') { if (t === 'set-discovery-listing') {
await platform.setGuildDiscoveryListing(msg.guildId, msg.listed !== false) await platform.setGuildDiscoveryListing(msg.guildId, msg.listed !== false)
if (platform.activeChannelId && platform.mode === 'guild') {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
pushState() pushState()
return true return true
} }
@@ -107,6 +113,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
minMembers: msg.minMembers, minMembers: msg.minMembers,
tag: msg.tag tag: msg.tag
}) })
if (platform.activeChannelId && platform.mode === 'guild') {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
pushState() pushState()
return true return true
} }
@@ -122,6 +134,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
} }
if (t === 'set-discovery-tags') { if (t === 'set-discovery-tags') {
await platform.setGuildDiscoveryTags(msg.guildId, msg.tags) await platform.setGuildDiscoveryTags(msg.guildId, msg.tags)
if (platform.activeChannelId && platform.mode === 'guild') {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
pushState() pushState()
return true return true
} }