feat(ui-flow): sync-guild-mesh-triple-pins recovery IPC (Phase 805)
Triple topology refresh for pin gossip and guild-sync-ready pins. 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.
|
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
|
||||||
|
|
||||||
|
**Phase 805 (v0.8.772):** `sync-guild-mesh-triple-pins` recovery IPC. Bundle: `npm run test:ci-phase805`.
|
||||||
|
|
||||||
**Phase 804 (v0.8.771):** `sync-guild-mesh-triple-sounds` recovery IPC. Bundle: `npm run test:ci-phase804`.
|
**Phase 804 (v0.8.771):** `sync-guild-mesh-triple-sounds` recovery IPC. Bundle: `npm run test:ci-phase804`.
|
||||||
|
|
||||||
**Phase 803 (v0.8.770):** `sync-guild-mesh-triple-stickers` recovery IPC. Bundle: `npm run test:ci-phase803`.
|
**Phase 803 (v0.8.770):** `sync-guild-mesh-triple-stickers` recovery IPC. Bundle: `npm run test:ci-phase803`.
|
||||||
|
|||||||
@@ -870,6 +870,27 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
|||||||
pushState({ structural: true, light: false, source: 'sync-guild-pins' })
|
pushState({ structural: true, light: false, source: 'sync-guild-pins' })
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if (t === 'sync-guild-mesh-triple-pins') {
|
||||||
|
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||||
|
const gid = platform.guild.guild.id
|
||||||
|
platform.emit('guild-mesh-topology', {
|
||||||
|
guildId: gid,
|
||||||
|
meshPeerCount: platform.guild?.peers?.size ?? 0,
|
||||||
|
manualRecovery: true
|
||||||
|
})
|
||||||
|
platform.emit('pin', {
|
||||||
|
guildId: gid,
|
||||||
|
channelId: platform.activeChannelId,
|
||||||
|
manualRecovery: true
|
||||||
|
})
|
||||||
|
platform.emit('guild-sync-ready', { guildId: gid, pins: 1 })
|
||||||
|
if (typeof platform.requestGuildSyncFanout === 'function') {
|
||||||
|
platform.requestGuildSyncFanout()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-pins' })
|
||||||
|
return true
|
||||||
|
}
|
||||||
if (t === 'sync-guild-sounds') {
|
if (t === 'sync-guild-sounds') {
|
||||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||||
platform.emit('guild-sound', {
|
platform.emit('guild-sound', {
|
||||||
|
|||||||
Reference in New Issue
Block a user