Send and receive PniSignatureMessage

This commit is contained in:
Fedor Indutny
2022-08-15 14:53:33 -07:00
committed by GitHub
parent 95be24e8f7
commit 00cfd92dd0
43 changed files with 1082 additions and 164 deletions

View File

@@ -236,7 +236,14 @@ async function maybeSaveToSendLog(
sendType: SendTypesType;
}
): Promise<void> {
const { contentHint, contentProto, recipients, timestamp, urgent } = result;
const {
contentHint,
contentProto,
recipients,
timestamp,
urgent,
hasPniSignatureMessage,
} = result;
if (!shouldSaveProto(sendType)) {
return;
@@ -268,6 +275,7 @@ async function maybeSaveToSendLog(
proto: Buffer.from(contentProto),
contentHint,
urgent: isBoolean(urgent) ? urgent : true,
hasPniSignatureMessage: Boolean(hasPniSignatureMessage),
},
{
messageIds,