mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix encrypted event indicator
This commit is contained in:
parent
277c0e9564
commit
c739a0422d
1 changed files with 5 additions and 5 deletions
|
@ -579,12 +579,12 @@ TimelineModel::internalAddEvents(
|
||||||
|
|
||||||
if (auto event =
|
if (auto event =
|
||||||
std::get_if<mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>>(&e)) {
|
std::get_if<mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>>(&e)) {
|
||||||
e = decryptEvent(*event).event;
|
auto e_ = decryptEvent(*event).event;
|
||||||
}
|
auto encInfo = mtx::accessors::file(e_);
|
||||||
auto encInfo = mtx::accessors::file(e);
|
|
||||||
|
|
||||||
if (encInfo)
|
if (encInfo)
|
||||||
emit newEncryptedImage(encInfo.value());
|
emit newEncryptedImage(encInfo.value());
|
||||||
|
}
|
||||||
|
|
||||||
this->events.insert(id, e);
|
this->events.insert(id, e);
|
||||||
ids.push_back(id);
|
ids.push_back(id);
|
||||||
|
|
Loading…
Reference in a new issue