Phase 792: sync-guild-pins IPC for manual pin mesh recovery.
Emits pin and requests sync fanout before structural 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 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`.
|
||||
|
||||
**Phase 790 (v0.8.757):** `sync-guild-emojis` → guild-emoji emit + structural push. Bundle: `npm run test:ci-phase790`.
|
||||
|
||||
@@ -822,6 +822,20 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
pushState({ structural: true, light: false, source: 'sync-guild-stickers' })
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-pins') {
|
||||
if (platform.mode === 'guild' || platform.mode === 'dm') {
|
||||
platform.emit('pin', {
|
||||
guildId: platform.guild?.guild?.id,
|
||||
channelId: platform.activeChannelId,
|
||||
manualRecovery: true
|
||||
})
|
||||
if (typeof platform.requestGuildSyncFanout === 'function') {
|
||||
platform.requestGuildSyncFanout()
|
||||
}
|
||||
}
|
||||
pushState({ structural: true, light: false, source: 'sync-guild-pins' })
|
||||
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