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:
@@ -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`.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user