From d03b53d47e928fd93d7958331aa20344523a2f8b Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Mon, 17 Oct 2022 10:39:10 -0700 Subject: [PATCH] Include story=true on SKDM only when sending to distribution list --- ts/util/sendToGroup.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/util/sendToGroup.ts b/ts/util/sendToGroup.ts index 4bc6be865..628886e6c 100644 --- a/ts/util/sendToGroup.ts +++ b/ts/util/sendToGroup.ts @@ -442,7 +442,8 @@ export async function sendToGroupViaSenderKey(options: { distributionId, groupId, identifiers: newToMemberUuids, - story, + // SKDMs should only have story=true if we're sending to a distribution list + story: sendTarget.getGroupId() ? false : story, urgent, }, sendOptions ? { ...sendOptions, online: false } : undefined