feat(ipc): Phase 835 sync-guild-mesh-quad-typing
Emit typing and guild-sync-ready with quadTyping after quad mesh typing indicator fanout recovery. 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 835 (v0.8.802):** `sync-guild-mesh-quad-typing` recovery IPC. Bundle: `npm run test:ci-phase835`.
|
||||
|
||||
**Phase 834 (v0.8.801):** `sync-guild-mesh-quad-voice` recovery IPC. Bundle: `npm run test:ci-phase834`.
|
||||
|
||||
**Phase 833 (v0.8.800):** `sync-guild-mesh-quad-unread` recovery IPC. Bundle: `npm run test:ci-phase833`.
|
||||
|
||||
@@ -1450,6 +1450,28 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-quad-typing') {
|
||||
if (platform.mode === 'guild' && platform.guild?.guild?.id && platform.activeChannelId) {
|
||||
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('typing')
|
||||
platform.emit('guild-sync-ready', { guildId: gid, quadTyping: 1 })
|
||||
if (typeof platform.requestGuildSyncFanout === 'function') {
|
||||
platform.requestGuildSyncFanout()
|
||||
}
|
||||
}
|
||||
pushState({
|
||||
light: false,
|
||||
source: 'sync-guild-mesh-quad-typing'
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-quad-voice') {
|
||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||
const gid = platform.guild.guild.id
|
||||
|
||||
Reference in New Issue
Block a user