From 2661892ce0a65caf65dd96a024884c21e6e81d31 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sun, 24 May 2026 10:32:44 -0400 Subject: [PATCH] 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 --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index bd27153..44b93cf 100644 --- a/index.js +++ b/index.js @@ -80,6 +80,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) { } if (t === 'join-public-discovery') { await platform.joinPublicDiscovery(msg.inviteCode) + if (platform.activeChannelId) { + send({ + type: 'composer-focus-channel', + channelId: platform.activeChannelId + }) + } pushState() return true }