aboutsummaryrefslogtreecommitdiff
path: root/lib/mxcreply.cpp
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2022-02-07 21:48:07 +0100
committerTobias Fella <fella@posteo.de>2022-02-07 21:48:07 +0100
commit7b5edb737522b03d4f697e0e09f1771ad5edef89 (patch)
treed102afda7ea49f7e51d4694e825d914a2ca8edef /lib/mxcreply.cpp
parent4837fd6de188b849a5d11de6791ba844398ce415 (diff)
downloadlibquotient-7b5edb737522b03d4f697e0e09f1771ad5edef89.tar.gz
libquotient-7b5edb737522b03d4f697e0e09f1771ad5edef89.zip
Remove encryptionmanager and various fixes
Diffstat (limited to 'lib/mxcreply.cpp')
-rw-r--r--lib/mxcreply.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/mxcreply.cpp b/lib/mxcreply.cpp
index c7f27b0c..c666cce3 100644
--- a/lib/mxcreply.cpp
+++ b/lib/mxcreply.cpp
@@ -9,7 +9,6 @@
#include "room.h"
#ifdef Quotient_E2EE_ENABLED
-#include "encryptionmanager.h"
#include "events/encryptedfile.h"
#endif
@@ -51,7 +50,7 @@ MxcReply::MxcReply(QNetworkReply* reply, Room* room, const QString &eventId)
} else {
EncryptedFile file = *d->m_encryptedFile;
auto buffer = new QBuffer(this);
- buffer->setData(EncryptionManager::decryptFile(d->m_reply->readAll(), &file));
+ buffer->setData(file.decryptFile(d->m_reply->readAll()));
buffer->open(ReadOnly);
d->m_device = buffer;
}