Use protopiler for protocol buffers

Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
Fedor Indutny
2026-03-10 15:31:29 -07:00
committed by GitHub
parent b0e19f334e
commit c4ee32e9ee
97 changed files with 6197 additions and 6362 deletions

View File

@@ -43,26 +43,32 @@ async function _sendCallLinkUpdateSync(
try {
const ourAci = itemStorage.user.getCheckedAci();
const callLinkUpdate = new Proto.SyncMessage.CallLinkUpdate({
const callLinkUpdate: Proto.SyncMessage.CallLinkUpdate.Params = {
type: protoType,
rootKey: toRootKeyBytes(callLink.rootKey),
adminPasskey: callLink.adminKey
? toAdminKeyBytes(callLink.adminKey)
: null,
};
const syncMessage = MessageSender.padSyncMessage({
content: {
callLinkUpdate,
},
});
const syncMessage = MessageSender.createSyncMessage();
syncMessage.callLinkUpdate = callLinkUpdate;
const contentMessage = new Proto.Content();
contentMessage.syncMessage = syncMessage;
await singleProtoJobQueue.add({
contentHint: ContentHint.Resendable,
serviceId: ourAci,
isSyncMessage: true,
protoBase64: Bytes.toBase64(
Proto.Content.encode(contentMessage).finish()
Proto.Content.encode({
content: {
syncMessage,
},
senderKeyDistributionMessage: null,
pniSignatureMessage: null,
})
),
type: 'callLinkUpdateSync',
urgent: false,