feat(ui-flow): composer focus after join-invite in guild mode (Phase 532)

Emit composer-focus-channel when join-invite succeeds with activeChannelId.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 12:04:12 -04:00
co-authored by Cursor
parent 2fd7a8a0a9
commit beaca656c0
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
**v0.8.495 (Phase 532):** `join-invite` emits `composer-focus-channel` when `platform.mode === 'guild'` and `activeChannelId` is set. Bundle: `npm run test:phase532-invites` (app repo).
**v0.8.490 (Phase 527):** `play-soundboard` emits `composer-focus-channel` in guild mode. Bundle: `npm run test:phase527-soundboard` (app repo).
**v0.8.489 (Phase 526):** `start-screen-share` and `stop-screen-share` emit `composer-focus-channel` in guild mode. Bundle: `npm run test:phase526-screen` (app repo).
+6
View File
@@ -73,6 +73,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
if (t === 'join-invite') {
const result = await platform.joinInvite(msg.code)
pushState()
if (platform.activeChannelId && platform.mode === 'guild') {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
if (result?.kind === 'explore') {
send({ type: 'deep-link-result', url: msg.code, ...result })
}