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:
Raven Scott
2026-05-24 11:03:22 -04:00
co-authored by Cursor
parent 0136cb26bb
commit 8e2cc7e85f
+6
View File
@@ -700,6 +700,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
filename: msg.filename,
mimeType: msg.mimeType
})
if (platform.activeChannelId && platform.mode === 'guild') {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
send({
type: 'attachment-staged',
attachment: att,