feat(ui-flow): sync-guild-mesh-triple-channel-settings IPC (Phase 799)
Topology + channel-settings + guild-sync-ready for triple mesh slowmode UI. 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.
|
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
|
||||||
|
|
||||||
|
**Phase 799 (v0.8.766):** `sync-guild-mesh-triple-channel-settings` → topology + channelSettings recovery. Bundle: `npm run test:ci-phase799`.
|
||||||
|
|
||||||
**Phase 798 (v0.8.765):** `sync-guild-mesh-triple-topic` → topology + channelTopic recovery. Bundle: `npm run test:ci-phase798`.
|
**Phase 798 (v0.8.765):** `sync-guild-mesh-triple-topic` → topology + channelTopic recovery. Bundle: `npm run test:ci-phase798`.
|
||||||
|
|
||||||
**Phase 797 (v0.8.764):** `sync-guild-channel-topic` → topic guild-sync-ready + structural push. Bundle: `npm run test:ci-phase797`.
|
**Phase 797 (v0.8.764):** `sync-guild-channel-topic` → topic guild-sync-ready + structural push. Bundle: `npm run test:ci-phase797`.
|
||||||
|
|||||||
@@ -904,6 +904,31 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
|||||||
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-topic' })
|
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-topic' })
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if (t === 'sync-guild-mesh-triple-channel-settings') {
|
||||||
|
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||||
|
const gid = platform.guild.guild.id
|
||||||
|
platform.emit('guild-mesh-topology', {
|
||||||
|
guildId: gid,
|
||||||
|
meshPeerCount: platform.guild?.peers?.size ?? 0,
|
||||||
|
manualRecovery: true
|
||||||
|
})
|
||||||
|
platform.emit('channel-settings', {
|
||||||
|
guildId: gid,
|
||||||
|
channelId: platform.activeChannelId,
|
||||||
|
manualRecovery: true
|
||||||
|
})
|
||||||
|
platform.emit('guild-sync-ready', { guildId: gid, channelSettings: 1 })
|
||||||
|
if (typeof platform.requestGuildSyncFanout === 'function') {
|
||||||
|
platform.requestGuildSyncFanout()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pushState({
|
||||||
|
structural: true,
|
||||||
|
light: false,
|
||||||
|
source: 'sync-guild-mesh-triple-channel-settings'
|
||||||
|
})
|
||||||
|
return true
|
||||||
|
}
|
||||||
if (t === 'sync-guild-partition-heal') {
|
if (t === 'sync-guild-partition-heal') {
|
||||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||||
void platform
|
void platform
|
||||||
|
|||||||
Reference in New Issue
Block a user