From f260b8b4aede752d66e4351fe4c09282d7b93db7 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 8 Sep 2019 17:28:40 +0200 Subject: [PATCH] Fix shadow error --- src/timeline2/TimelineModel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/timeline2/TimelineModel.cpp b/src/timeline2/TimelineModel.cpp index 0d4ec239..d3d6f5c7 100644 --- a/src/timeline2/TimelineModel.cpp +++ b/src/timeline2/TimelineModel.cpp @@ -514,11 +514,11 @@ TimelineModel::decryptEvent(const mtx::events::EncryptedEvent events; - mtx::responses::utils::parse_timeline_events(event_array, events); + std::vector temp_events; + mtx::responses::utils::parse_timeline_events(event_array, temp_events); - if (events.size() == 1) - return {events.at(0), true}; + if (temp_events.size() == 1) + return {temp_events.at(0), true}; dummy.content.body = tr("-- Encrypted Event (Unknown event type) --",