getSendOptions: Disable sealed sender whenever sending to own account
This commit is contained in:
parent
215d90fbe8
commit
403b3c5fc6
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue