Fix own encrypted images not showing up after sending

pull/173/head
Nicolas Werner 5 years ago
parent 22ecdfc3ff
commit e8271acd99
  1. 4
      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 {

Loading…
Cancel
Save