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

Fix shadowing variable

parent a00b11de
No related branches found
No related tags found
No related merge requests found
......@@ -292,10 +292,10 @@ EventStore::reactions(const std::string &event_id)
reaction.count_ = agg.count;
reaction.selfReactedEvent_ = QString::fromStdString(agg.reactedBySelf);
bool first = true;
bool firstReaction = true;
for (const auto &user : agg.users) {
if (first)
first = false;
if (firstReaction)
firstReaction = false;
else
reaction.users_ += ", ";
......
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