diff --git a/ts/textsecure/OutgoingMessage.ts b/ts/textsecure/OutgoingMessage.ts index 2a1ddd051..0b3d02325 100644 --- a/ts/textsecure/OutgoingMessage.ts +++ b/ts/textsecure/OutgoingMessage.ts @@ -430,7 +430,7 @@ export default class OutgoingMessage { const sealedSender = Boolean(accessKey && senderCertificate); - // We don't send to ourselves if unless sealedSender is enabled + // We don't send to ourselves unless sealedSender is enabled const ourNumber = window.textsecure.storage.user.getNumber(); const ourUuid = window.textsecure.storage.user.getUuid(); const ourDeviceId = window.textsecure.storage.user.getDeviceId(); diff --git a/ts/util/getSendOptions.ts b/ts/util/getSendOptions.ts index a9596b0e2..e23d8da04 100644 --- a/ts/util/getSendOptions.ts +++ b/ts/util/getSendOptions.ts @@ -50,8 +50,8 @@ export async function getSendOptions( const { accessKey, sealedSender } = conversationAttrs; - // We never send sync messages as sealed sender - if (syncMessage && isMe(conversationAttrs)) { + // We never send sync messages or to our own account as sealed sender + if (syncMessage || isMe(conversationAttrs)) { return { sendMetadata: undefined, };