feat(discovery): autofocus composer after joining from Explore

Emit composer-focus-channel when join-public-discovery selects a channel
so the message composer receives focus after an explore listing join.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 10:32:44 -04:00
co-authored by Cursor
parent 7736f43ea9
commit 2661892ce0
+6
View File
@@ -80,6 +80,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
} }
if (t === 'join-public-discovery') { if (t === 'join-public-discovery') {
await platform.joinPublicDiscovery(msg.inviteCode) await platform.joinPublicDiscovery(msg.inviteCode)
if (platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
pushState() pushState()
return true return true
} }