diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-04-21 09:03:36 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-04-21 09:03:36 +0200 |
commit | e8271acd9909125ccc6d4e1f5bcb11feb4d12d35 (patch) | |
tree | 64311f33c2dbfe5eed58527ed9871192c755de26 /src | |
parent | Merge pull request #169 from not-chicken/master (diff) | |
download | nheko-e8271acd9909125ccc6d4e1f5bcb11feb4d12d35.tar.xz |
Fix own encrypted images not showing up after sending
Diffstat (limited to 'src')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 4 |
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 { |