Fix shadowing variable

This commit is contained in:
Nicolas Werner 2020-07-26 13:07:36 +02:00
parent a00b11def7
commit ade905c881
1 changed files with 3 additions and 3 deletions

View File

@ -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_ += ", ";