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