Remove unused binding name

This commit is contained in:
Nicolas Werner 2020-05-06 13:45:38 +02:00
parent e48dfd15fe
commit 0b1d3a40f4

View file

@ -35,13 +35,13 @@ ReactionsModel::data(const QModelIndex &index, int role) const
case Users: { case Users: {
QString users; QString users;
bool first = true; bool first = true;
for (const auto &[event_id, reaction] : reactions[i].reactions) { for (const auto &reaction : reactions[i].reactions) {
if (!first) if (!first)
users += ", "; users += ", ";
else else
first = false; first = false;
users += users += QString::fromStdString(
QString::fromStdString(cache::displayName(room_id_, reaction.sender)); cache::displayName(room_id_, reaction.second.sender));
} }
return users; return users;
} }