Phase 847: sync-guild-mesh-quad-sounds IPC

Quad mesh sound fanout emits guild-sound and guild-sync-ready for soundboard refresh.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-04 05:28:51 -04:00
co-authored by Cursor
parent 5b55c9692a
commit 800d7d1e48
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 847 (v0.8.814):** `sync-guild-mesh-quad-sounds` soundboard IPC. Bundle: `npm run test:ci-phase847`.
**Phase 846 (v0.8.813):** `sync-guild-mesh-quad-channel-settings` settings IPC. Bundle: `npm run test:ci-phase846`.
**Phase 845 (v0.8.812):** `sync-guild-mesh-quad-topic` topic IPC. Bundle: `npm run test:ci-phase845`.
+23
View File
@@ -1450,6 +1450,29 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
})
return true
}
if (t === 'sync-guild-mesh-quad-sounds') {
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-sound', { guildId: gid, manualRecovery: true })
platform.emit('guild-sync-ready', { guildId: gid, quadSounds: 1, sounds: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({
structural: true,
light: false,
source: 'sync-guild-mesh-quad-sounds'
})
return true
}
if (t === 'sync-guild-mesh-quad-channel-settings') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id