use senderIdentity for incoming messages on mediumGroups

pull/1345/head
Audric Ackermann 5 years ago
parent cd44143eaf
commit 8326870b1a
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -82,7 +82,7 @@ async function decryptForMediumGroup(
);
return null;
}
envelope.senderIdentity = sourceAsStr;
const plaintext = await decryptWithSenderKey(
ciphertext,
keyIdx,

@ -296,7 +296,7 @@ export async function handleDataMessage(
}
const message = await processDecrypted(envelope, dataMessage);
const ourPubKey = window.textsecure.storage.user.getNumber();
const senderPubKey = envelope.source;
const senderPubKey = envelope.senderIdentity || envelope.source;
const isMe = senderPubKey === ourPubKey;
const conversation = window.ConversationController.get(senderPubKey);

Loading…
Cancel
Save