mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 17:08:57 +01:00
Support sending pin/unpin messages
This commit is contained in:
@@ -31,8 +31,10 @@ export const sendTypesEnum = z.enum([
|
||||
'expirationTimerUpdate', // non-urgent
|
||||
'groupChange', // non-urgent
|
||||
'reaction',
|
||||
'pinMessage',
|
||||
'pollTerminate',
|
||||
'pollVote', // non-urgent
|
||||
'unpinMessage',
|
||||
'typing', // excluded from send log; non-urgent
|
||||
|
||||
// Responding to incoming messages, all non-urgent
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user