Fix own encrypted images not showing up after sending

This commit is contained in:
Nicolas Werner 2020-04-21 09:03:36 +02:00
parent 22ecdfc3ff
commit e8271acd99

View file

@ -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 {