summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-04-21 09:03:36 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-04-21 09:03:36 +0200
commite8271acd9909125ccc6d4e1f5bcb11feb4d12d35 (patch)
tree64311f33c2dbfe5eed58527ed9871192c755de26
parent22ecdfc3ff0a320146f79b63e13b2d2fd1982a85 (diff)
Fix own encrypted images not showing up after sending
-rw-r--r--src/timeline/TimelineModel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index 262fa10a..7e124f47 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -1225,6 +1225,10 @@ struct SendMessageVisitor
{
if (cache::isRoomEncrypted(model_->room_id_.toStdString())) {
+ auto encInfo = mtx::accessors::file(msg);
+ if (encInfo)
+ emit model_->newEncryptedImage(encInfo.value());
+
model_->sendEncryptedMessage(txn_id_qstr_.toStdString(),
nlohmann::json(msg.content));
} else {