feat(ui-flow): composer focus after settings IPC updates
Phase 598 parity — autofocus message composer after update-user-prefs and update-guild-settings when a guild text channel is active. 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.561 (Phase 598):** `update-user-prefs` and `update-guild-settings` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase598-settings` (app repo).
|
||||
|
||||
**v0.8.560 (Phase 597):** `select-guild` emits `composer-focus-channel` in guild mode when `activeChannelId` is set (matching join-invite guild switch behavior). Bundle: `npm run test:phase597-session` (app repo).
|
||||
|
||||
**v0.8.559 (Phase 596):** `create-guild` emits `composer-focus-channel` in guild mode when `activeChannelId` is set (matching existing `join-invite` behavior). Bundle: `npm run test:phase596-onboarding` (app repo).
|
||||
|
||||
@@ -901,6 +901,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
nsfwGateEnabled: msg.nsfwGateEnabled
|
||||
})
|
||||
pushState()
|
||||
if (platform.activeChannelId && platform.mode === 'guild') {
|
||||
send({
|
||||
type: 'composer-focus-channel',
|
||||
channelId: platform.activeChannelId
|
||||
})
|
||||
}
|
||||
return true
|
||||
}
|
||||
if (t === 'set-guild-icon-image') {
|
||||
@@ -1836,6 +1842,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
if (t === 'update-user-prefs') {
|
||||
await platform.updateUserPrefs(msg.prefs || {})
|
||||
pushState()
|
||||
if (platform.activeChannelId && platform.mode === 'guild') {
|
||||
send({
|
||||
type: 'composer-focus-channel',
|
||||
channelId: platform.activeChannelId
|
||||
})
|
||||
}
|
||||
return true
|
||||
}
|
||||
if (t === 'create-channel-webhook') {
|
||||
|
||||
Reference in New Issue
Block a user