fix: messaging-history.set event not emitting syncType and progress / add PDO request id (#1042)

* initial commit

* add PDO request id
This commit is contained in:
vini
2024-09-22 08:34:43 -03:00
committed by GitHub
parent ed00a57c84
commit fda2689169
4 changed files with 14 additions and 3 deletions

View File

@@ -230,6 +230,9 @@ function append<E extends BufferableEvent>(
}
data.historySets.empty = false
data.historySets.syncType = eventData.syncType
data.historySets.progress = eventData.progress
data.historySets.peerDataRequestSessionId = eventData.peerDataRequestSessionId
data.historySets.isLatest = eventData.isLatest || data.historySets.isLatest
break
@@ -521,7 +524,10 @@ function consolidateEvents(data: BufferedEventData) {
chats: Object.values(data.historySets.chats),
messages: Object.values(data.historySets.messages),
contacts: Object.values(data.historySets.contacts),
isLatest: data.historySets.isLatest
syncType: data.historySets.syncType,
progress: data.historySets.progress,
isLatest: data.historySets.isLatest,
peerDataRequestSessionId: data.historySets.peerDataRequestSessionId
}
}