mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 15:45:39 +01:00
Use protopiler for protocol buffers
Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user