Commit 74099680 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed file sent in basic chat room fakely encrypted + removed X3DH text from LIME logs

parent 412151cf
......@@ -37,7 +37,7 @@ ChatMessageModifier::Result EncryptionChatMessageModifier::encode (
const shared_ptr<ChatMessage> &message,
int &errorCode
) {
if (message->getCore()->getEncryptionEngine() != nullptr && (message->getChatRoom()->getCapabilities() & ClientGroupChatRoom::Capabilities::Encrypted)) {
if (message->getCore()->getEncryptionEngine() != nullptr) {
ChatMessageModifier::Result result = message->getCore()->getEncryptionEngine()->processOutgoingMessage(message, errorCode);
if (result == ChatMessageModifier::Result::Suspended || result == ChatMessageModifier::Result::Done) {
message->setIsSecured(true);
......@@ -51,7 +51,7 @@ ChatMessageModifier::Result EncryptionChatMessageModifier::decode (
const shared_ptr<ChatMessage> &message,
int &errorCode
) {
if (message->getCore()->getEncryptionEngine() != nullptr && (message->getChatRoom()->getCapabilities() & ClientGroupChatRoom::Capabilities::Encrypted)) {
if (message->getCore()->getEncryptionEngine() != nullptr) {
ChatMessageModifier::Result result = message->getCore()->getEncryptionEngine()->processIncomingMessage(message, errorCode);
if (result == ChatMessageModifier::Result::Suspended || result == ChatMessageModifier::Result::Done) {
message->setIsSecured(true);
......
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