Skip to content
Snippets Groups Projects
Commit c1ee22a5 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix shadow warning

parent 34f5400e
No related branches found
No related tags found
No related merge requests found
......@@ -234,15 +234,15 @@ TimelineModel::data(const QModelIndex &index, int role) const
}
void
TimelineModel::addEvents(const mtx::responses::Timeline &events)
TimelineModel::addEvents(const mtx::responses::Timeline &timeline)
{
if (isInitialSync) {
prev_batch_token_ = QString::fromStdString(events.prev_batch);
prev_batch_token_ = QString::fromStdString(timeline.prev_batch);
isInitialSync = false;
}
std::vector<QString> ids;
for (const auto &e : events.events) {
for (const auto &e : timeline.events) {
QString id =
boost::apply_visitor([](const auto &e) -> QString { return eventId(e); }, e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment