Commit 20f85bc2 authored by Matthieu Tanon's avatar Matthieu Tanon
Browse files

New attempt to match X3DH server upgrade to ignore recipient devices which have no keys on server

parent 9b7e9c3a
......@@ -246,6 +246,16 @@ ChatMessageModifier::Result LimeX3dhEncryptionEngine::processOutgoingMessage (
limeManager->encrypt(localDeviceId, recipientUserId, recipients, plainMessage, cipherMessage, [localDeviceId, recipients, cipherMessage, message, result, &errorCode] (lime::CallbackReturn returnCode, string errorMessage) {
if (returnCode == lime::CallbackReturn::success) {
// Ignore devices which do not have keys on the X3DH server
// The message will still be sent to them but they will not be able to decrypt it
vector<lime::RecipientData> filteredRecipients;
for (const lime::RecipientData recipient : *recipients) {
if (recipient.peerStatus != lime::PeerDeviceStatus::fail) {
list<Content *> contents;
// ---------------------------------------------- SIPFRAG
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment