feat(attachments): composer focus after stage-attachment (Phase 522)
Emit composer-focus-channel when stage-attachment completes in guild mode so file uploads restore composer autofocus like Discord. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -700,6 +700,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
|||||||
filename: msg.filename,
|
filename: msg.filename,
|
||||||
mimeType: msg.mimeType
|
mimeType: msg.mimeType
|
||||||
})
|
})
|
||||||
|
if (platform.activeChannelId && platform.mode === 'guild') {
|
||||||
|
send({
|
||||||
|
type: 'composer-focus-channel',
|
||||||
|
channelId: platform.activeChannelId
|
||||||
|
})
|
||||||
|
}
|
||||||
send({
|
send({
|
||||||
type: 'attachment-staged',
|
type: 'attachment-staged',
|
||||||
attachment: att,
|
attachment: att,
|
||||||
|
|||||||
Reference in New Issue
Block a user