Include story=true on SKDM only when sending to distribution list

This commit is contained in:
Scott Nonnenberg
2022-10-17 10:39:10 -07:00
committed by GitHub
parent bf4e697a0a
commit d03b53d47e

View File

@@ -442,7 +442,8 @@ export async function sendToGroupViaSenderKey(options: {
distributionId, distributionId,
groupId, groupId,
identifiers: newToMemberUuids, identifiers: newToMemberUuids,
story, // SKDMs should only have story=true if we're sending to a distribution list
story: sendTarget.getGroupId() ? false : story,
urgent, urgent,
}, },
sendOptions ? { ...sendOptions, online: false } : undefined sendOptions ? { ...sendOptions, online: false } : undefined