feat(ui-flow): sync-guild-sounds IPC for mesh soundboard recovery (Phase 793)
Manual recovery path emits guild-sound and requests sync fanout with a structural state push. 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 793 (v0.8.760):** `sync-guild-sounds` → guild-sound emit + structural push. Bundle: `npm run test:ci-phase793`.
|
||||
|
||||
**Phase 792 (v0.8.759):** `sync-guild-pins` → pin emit + structural push. Bundle: `npm run test:ci-phase792`.
|
||||
|
||||
**Phase 791 (v0.8.758):** `sync-guild-stickers` → guild-sticker emit + structural push. Bundle: `npm run test:ci-phase791`.
|
||||
|
||||
@@ -836,6 +836,19 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
pushState({ structural: true, light: false, source: 'sync-guild-pins' })
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-sounds') {
|
||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||
platform.emit('guild-sound', {
|
||||
guildId: platform.guild.guild.id,
|
||||
manualRecovery: true
|
||||
})
|
||||
if (typeof platform.requestGuildSyncFanout === 'function') {
|
||||
platform.requestGuildSyncFanout()
|
||||
}
|
||||
}
|
||||
pushState({ structural: true, light: false, source: 'sync-guild-sounds' })
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-reconnect') {
|
||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||
if (typeof platform.runOfflineRecoverySync === 'function') {
|
||||
|
||||
Reference in New Issue
Block a user