mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix own encrypted images not showing up after sending
This commit is contained in:
parent
22ecdfc3ff
commit
e8271acd99
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue