mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-26 19:34:04 +01:00
Add expire timers to pin/unpin data messages
This commit is contained in:
@@ -25,6 +25,7 @@ export async function wrapWithSyncMessageSend({
|
||||
send,
|
||||
sendType,
|
||||
timestamp,
|
||||
expirationStartTimestamp,
|
||||
}: {
|
||||
conversation: ConversationModel;
|
||||
logId: string;
|
||||
@@ -32,6 +33,7 @@ export async function wrapWithSyncMessageSend({
|
||||
send: (sender: MessageSender) => Promise<CallbackResultType>;
|
||||
sendType: SendTypesType;
|
||||
timestamp: number;
|
||||
expirationStartTimestamp: number | null;
|
||||
}): Promise<void> {
|
||||
const logId = `wrapWithSyncMessageSend(${parentLogId}, ${timestamp})`;
|
||||
|
||||
@@ -84,7 +86,7 @@ export async function wrapWithSyncMessageSend({
|
||||
destinationE164: conversation.get('e164'),
|
||||
destinationServiceId: conversation.getServiceId(),
|
||||
encodedDataMessage: dataMessage,
|
||||
expirationStartTimestamp: null,
|
||||
expirationStartTimestamp,
|
||||
options,
|
||||
timestamp,
|
||||
urgent: false,
|
||||
|
||||
Reference in New Issue
Block a user