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

@@ -6,7 +6,7 @@ import * as Bytes from '../Bytes.std.js';
import { SignalService as Proto } from '../protobuf/index.std.js';
import { fromServiceIdBinaryOrString } from './ServiceId.node.js';
import PinnedConversation = Proto.AccountRecord.IPinnedConversation;
import PinnedConversation = Proto.AccountRecord.PinnedConversation.Params;
export function arePinnedConversationsEqual(
localValue: Array<PinnedConversation>,
@@ -17,10 +17,17 @@ export function arePinnedConversationsEqual(
}
return localValue.every(
(localPinnedConversation: PinnedConversation, index: number) => {
const remotePinnedConversation = remoteValue[index];
const remotePinnedConversation = remoteValue[index].identifier;
if (!remotePinnedConversation) {
return false;
}
if (!localPinnedConversation.identifier) {
return false;
}
const { contact, groupMasterKey, legacyGroupId } =
localPinnedConversation;
localPinnedConversation.identifier;
if (contact) {
const { contact: remoteContact } = remotePinnedConversation;