Phase 843: sync-guild-mesh-quad-emojis IPC

Quad mesh emoji fanout emits guild-emoji and guild-sync-ready for picker refresh.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-04 05:15:57 -04:00
co-authored by Cursor
parent e0bfdc8198
commit 9bc1682571
2 changed files with 25 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
**Phase 843 (v0.8.810):** `sync-guild-mesh-quad-emojis` emoji IPC. Bundle: `npm run test:ci-phase843`.
**Phase 842 (v0.8.809):** `sync-guild-mesh-quad-offline-recovery` recovery IPC. Bundle: `npm run test:ci-phase842`.
**Phase 841 (v0.8.808):** `sync-guild-mesh-quad-sync-health` recovery IPC. Bundle: `npm run test:ci-phase841`.
+23
View File
@@ -1450,6 +1450,29 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
})
return true
}
if (t === 'sync-guild-mesh-quad-emojis') {
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('guild-emoji', { guildId: gid, manualRecovery: true })
platform.emit('guild-sync-ready', { guildId: gid, quadEmojis: 1, emojis: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({
structural: true,
light: false,
source: 'sync-guild-mesh-quad-emojis'
})
return true
}
if (t === 'sync-guild-mesh-quad-offline-recovery') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id