mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix shadow error
This commit is contained in:
parent
656861fa9d
commit
f260b8b4ae
1 changed files with 4 additions and 4 deletions
|
@ -514,11 +514,11 @@ TimelineModel::decryptEvent(const mtx::events::EncryptedEvent<mtx::events::msg::
|
||||||
json event_array = json::array();
|
json event_array = json::array();
|
||||||
event_array.push_back(body);
|
event_array.push_back(body);
|
||||||
|
|
||||||
std::vector<mtx::events::collections::TimelineEvents> events;
|
std::vector<mtx::events::collections::TimelineEvents> temp_events;
|
||||||
mtx::responses::utils::parse_timeline_events(event_array, events);
|
mtx::responses::utils::parse_timeline_events(event_array, temp_events);
|
||||||
|
|
||||||
if (events.size() == 1)
|
if (temp_events.size() == 1)
|
||||||
return {events.at(0), true};
|
return {temp_events.at(0), true};
|
||||||
|
|
||||||
dummy.content.body =
|
dummy.content.body =
|
||||||
tr("-- Encrypted Event (Unknown event type) --",
|
tr("-- Encrypted Event (Unknown event type) --",
|
||||||
|
|
Loading…
Reference in a new issue