mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +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())) {
|
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(),
|
model_->sendEncryptedMessage(txn_id_qstr_.toStdString(),
|
||||||
nlohmann::json(msg.content));
|
nlohmann::json(msg.content));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue