Support sending pin/unpin messages

This commit is contained in:
Jamie
2025-12-08 15:00:10 -08:00
committed by GitHub
parent d61f96a1c1
commit f1aef55d0c
16 changed files with 548 additions and 324 deletions

View File

@@ -37,7 +37,7 @@ import { isRecord } from './isRecord.std.js';
import { isOlderThan } from './timestamp.std.js';
import type {
GroupSendOptionsType,
GroupMessageOptionsType,
SendOptionsType,
} from '../textsecure/SendMessage.preload.js';
import { messageSender } from '../textsecure/SendMessage.preload.js';
@@ -137,7 +137,7 @@ export async function sendToGroup({
}: {
abortSignal?: AbortSignal;
contentHint: number;
groupSendOptions: GroupSendOptionsType;
groupSendOptions: GroupMessageOptionsType;
isPartialSend?: boolean;
messageId: string | undefined;
sendOptions?: SendOptionsType;
@@ -931,7 +931,7 @@ export function _shouldFailSend(error: unknown, logId: string): boolean {
}
function getRecipients(
options: GroupSendOptionsType
options: GroupMessageOptionsType
): ReadonlyArray<ServiceIdString> {
if (options.groupV2) {
return options.groupV2.members;