Phase 820: sync-guild-mesh-triple-roster-complete IPC (v0.8.787).
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.
|
||||
|
||||
**Phase 820 (v0.8.787):** `sync-guild-mesh-triple-roster-complete` recovery IPC. Bundle: `npm run test:ci-phase820`.
|
||||
|
||||
**Phase 819 (v0.8.786):** `sync-guild-mesh-triple-sync-pending` recovery IPC. Bundle: `npm run test:ci-phase819`.
|
||||
|
||||
**Phase 818 (v0.8.785):** `sync-guild-mesh-triple-sync-health` recovery IPC. Bundle: `npm run test:ci-phase818`.
|
||||
|
||||
@@ -1342,6 +1342,30 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-messages' })
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-triple-roster-complete') {
|
||||
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
|
||||
})
|
||||
if (typeof platform.clearGuildSyncPushHalt === 'function') {
|
||||
platform.clearGuildSyncPushHalt(gid)
|
||||
}
|
||||
if (typeof platform._refreshGuildSyncHealthCounts === 'function') {
|
||||
await platform._refreshGuildSyncHealthCounts(gid).catch(() => null)
|
||||
}
|
||||
platform.emit('member')
|
||||
platform.emit('guild-sync-health')
|
||||
platform.emit('guild-sync-ready', { guildId: gid, members: 1, rosterComplete: 1 })
|
||||
if (typeof platform.requestGuildSyncFanout === 'function') {
|
||||
platform.requestGuildSyncFanout()
|
||||
}
|
||||
}
|
||||
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-roster-complete' })
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-triple-roster') {
|
||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||
const gid = platform.guild.guild.id
|
||||
|
||||
Reference in New Issue
Block a user