summary refs log tree commit diff
path: root/src
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 /src
parentMerge pull request #169 from not-chicken/master (diff)
downloadnheko-e8271acd9909125ccc6d4e1f5bcb11feb4d12d35.tar.xz
Fix own encrypted images not showing up after sending
Diffstat (limited to 'src')
-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 {