feat(ui-flow): composer focus after create-invite

Emit composer-focus-channel when guild invite is created and a channel is active.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 13:33:59 -04:00
co-authored by Cursor
parent fb7e31ce4f
commit 970f8e8fc8
+6
View File
@@ -547,6 +547,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
if (t === 'create-invite') { if (t === 'create-invite') {
const inv = await platform.createInvite() const inv = await platform.createInvite()
send({ type: 'invite', invite: inv }) send({ type: 'invite', invite: inv })
if (platform.activeChannelId && platform.mode === 'guild') {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
pushState() pushState()
return true return true
} }