From 276c153ec458530acd5e5fce08d3181461b6ee83 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Mon, 26 Jul 2021 16:48:43 -0700 Subject: [PATCH] sendToGroup: Ensure key distribution messages are always online:false --- ts/util/sendToGroup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/util/sendToGroup.ts b/ts/util/sendToGroup.ts index 700c0d0f6b..746c529920 100644 --- a/ts/util/sendToGroup.ts +++ b/ts/util/sendToGroup.ts @@ -376,7 +376,7 @@ export async function sendToGroupViaSenderKey(options: { groupId, identifiers: newToMemberUuids, }, - sendOptions + sendOptions ? { ...sendOptions, online: false } : undefined ), { messageIds: [], sendType: 'senderKeyDistributionMessage' } );