Add receive support for pin/unpin message

This commit is contained in:
Jamie
2025-12-04 12:47:19 -08:00
committed by GitHub
parent 1b03cc4b9b
commit efe2c8de71
24 changed files with 861 additions and 97 deletions

View File

@@ -0,0 +1,19 @@
// Copyright 2025 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { AciString } from '@signalapp/mock-server/src/types';
import type { ConversationModel } from '../../models/conversations.preload.js';
import { itemStorage } from '../../textsecure/Storage.preload.js';
export function isValidSenderAciForConversation(
conversation: ConversationModel,
senderAci: AciString
): boolean {
const ourAci = itemStorage.user.getCheckedAci();
if (senderAci === ourAci) {
return true;
}
return conversation.hasMember(senderAci);
}