aboutsummaryrefslogtreecommitdiff
path: root/lib/mxcreply.cpp
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2022-03-11 15:05:39 +0100
committerTobias Fella <fella@posteo.de>2022-03-11 15:05:39 +0100
commit494099a4b51b4d537a40a89c9d642fe3bd61e559 (patch)
treee733ec0233765cbc566d355e960dc82ead8e72ca /lib/mxcreply.cpp
parentb865be5ad72b3996bf072268d061d7466bf4623a (diff)
downloadlibquotient-494099a4b51b4d537a40a89c9d642fe3bd61e559.tar.gz
libquotient-494099a4b51b4d537a40a89c9d642fe3bd61e559.zip
Fix loading images when E2EE is disabled
Diffstat (limited to 'lib/mxcreply.cpp')
-rw-r--r--lib/mxcreply.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mxcreply.cpp b/lib/mxcreply.cpp
index 1d40c5e1..b757bb93 100644
--- a/lib/mxcreply.cpp
+++ b/lib/mxcreply.cpp
@@ -54,11 +54,11 @@ MxcReply::MxcReply(QNetworkReply* reply, Room* room, const QString &eventId)
buffer->open(ReadOnly);
d->m_device = buffer;
}
- setOpenMode(ReadOnly);
- emit finished();
#else
d->m_device = d->m_reply;
#endif
+ setOpenMode(ReadOnly);
+ emit finished();
});
#ifdef Quotient_E2EE_ENABLED