diff options
author | Tobias Fella <fella@posteo.de> | 2021-11-15 21:26:47 +0100 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-12-01 21:56:59 +0100 |
commit | 34db4fd1294e41765a5db58ee1a0c59712af62c6 (patch) | |
tree | 27a58367029402c66a9072b1ca17ce86d00a4e92 /lib/mxcreply.cpp | |
parent | 82cffec29937e4449a75040485d5188f429b7b1e (diff) | |
download | libquotient-34db4fd1294e41765a5db58ee1a0c59712af62c6.tar.gz libquotient-34db4fd1294e41765a5db58ee1a0c59712af62c6.zip |
Various improvements and fixes
Diffstat (limited to 'lib/mxcreply.cpp')
-rw-r--r-- | lib/mxcreply.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mxcreply.cpp b/lib/mxcreply.cpp index 65078301..639c1324 100644 --- a/lib/mxcreply.cpp +++ b/lib/mxcreply.cpp @@ -52,6 +52,7 @@ MxcReply::MxcReply(QNetworkReply* reply, Room* room, const QString &eventId) EncryptedFile file = *d->m_encryptedFile; auto buffer = new QBuffer(this); buffer->setData(EncryptionManager::decryptFile(d->m_reply->readAll(), &file)); + buffer->open(ReadOnly); d->m_device = buffer; } setOpenMode(ReadOnly); |