Skip to content
Snippets Groups Projects
Commit e8271acd authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix own encrypted images not showing up after sending

parent 22ecdfc3
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment