Update mock server to 18.0.0

This commit is contained in:
Fedor Indutny
2026-03-06 10:59:31 -08:00
committed by GitHub
parent 2e85efb008
commit 4cd792f28d
27 changed files with 527 additions and 433 deletions

View File

@@ -151,36 +151,42 @@ function maybeWrapInSyncMessage({
}): Proto.Content.Params {
return isSync
? {
syncMessage: {
sent: {
destinationServiceIdBinary: getDevice(to).aciBinary,
message: dataMessage,
timestamp: dataMessage.timestamp,
unidentifiedStatus: (sentTo ?? [to]).map(contact => ({
destinationServiceIdBinary: getDevice(contact).aciBinary,
destination: getDevice(contact).number,
unidentified: null,
destinationPniIdentityKey: null,
destinationServiceId: null,
})),
destinationE164: null,
expirationStartTimestamp: null,
isRecipientUpdate: null,
storyMessage: null,
storyMessageRecipients: null,
editMessage: null,
destinationServiceId: null,
content: {
syncMessage: {
content: {
sent: {
destinationServiceIdBinary: getDevice(to).aciBinary,
message: dataMessage,
timestamp: dataMessage.timestamp,
unidentifiedStatus: (sentTo ?? [to]).map(contact => ({
destinationServiceIdBinary: getDevice(contact).aciBinary,
destination: getDevice(contact).number,
unidentified: null,
destinationPniIdentityKey: null,
destinationServiceId: null,
})),
destinationE164: null,
expirationStartTimestamp: null,
isRecipientUpdate: null,
storyMessage: null,
storyMessageRecipients: null,
editMessage: null,
destinationServiceId: null,
},
},
read: null,
stickerPackOperation: null,
viewed: null,
padding: null,
},
read: null,
stickerPackOperation: null,
viewed: null,
padding: null,
},
pniSignatureMessage: null,
senderKeyDistributionMessage: null,
}
: {
dataMessage,
content: {
dataMessage,
},
pniSignatureMessage: null,
senderKeyDistributionMessage: null,
};