Phase 838: sync-guild-mesh-quad-pins recovery IPC (v0.8.805)
Emit pin and guild-sync-ready quadPins markers after quad mesh pin fanout for UI chrome refresh coordination. 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 838 (v0.8.805):** `sync-guild-mesh-quad-pins` recovery IPC. Bundle: `npm run test:ci-phase838`.
|
||||
|
||||
**Phase 837 (v0.8.804):** `sync-guild-mesh-quad-roles` recovery IPC. Bundle: `npm run test:ci-phase837`.
|
||||
|
||||
**Phase 836 (v0.8.803):** `sync-guild-mesh-quad-reactions` recovery IPC. Bundle: `npm run test:ci-phase836`.
|
||||
|
||||
@@ -1450,6 +1450,33 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-quad-pins') {
|
||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||
const gid = platform.guild.guild.id
|
||||
const peerN = platform.guild?.peers?.size ?? 0
|
||||
platform.emit('guild-mesh-topology', {
|
||||
guildId: gid,
|
||||
meshPeerCount: peerN,
|
||||
manualRecovery: true,
|
||||
quadMesh: true
|
||||
})
|
||||
platform.emit('pin', {
|
||||
guildId: gid,
|
||||
channelId: platform.activeChannelId,
|
||||
manualRecovery: true
|
||||
})
|
||||
platform.emit('guild-sync-ready', { guildId: gid, quadPins: 1, pins: 1 })
|
||||
if (typeof platform.requestGuildSyncFanout === 'function') {
|
||||
platform.requestGuildSyncFanout()
|
||||
}
|
||||
}
|
||||
pushState({
|
||||
structural: true,
|
||||
light: false,
|
||||
source: 'sync-guild-mesh-quad-pins'
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-quad-roles') {
|
||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||
const gid = platform.guild.guild.id
|
||||
|
||||
Reference in New Issue
Block a user