Add expire timers to pin/unpin data messages

This commit is contained in:
Jamie
2026-01-14 08:35:24 -08:00
committed by GitHub
parent 3fe00d80ea
commit 040b3fe7b8
14 changed files with 59 additions and 15 deletions

View File

@@ -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,