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:
@@ -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).
|
||||
|
||||
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user