summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-05-06 13:45:38 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-05-06 13:45:38 +0200
commit0b1d3a40f4e19d4c0257bfdbe276f373414542d6 (patch)
tree8e98c30573e17594fee48feb3cfdb46939de2a83
parentAdd shortcuts to select/deselect reply targets (diff)
downloadnheko-0b1d3a40f4e19d4c0257bfdbe276f373414542d6.tar.xz
Remove unused binding name
-rw-r--r--src/timeline/ReactionsModel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeline/ReactionsModel.cpp b/src/timeline/ReactionsModel.cpp
index b686c750..2e249819 100644
--- a/src/timeline/ReactionsModel.cpp
+++ b/src/timeline/ReactionsModel.cpp
@@ -35,13 +35,13 @@ ReactionsModel::data(const QModelIndex &index, int role) const
         case Users: {
                 QString users;
                 bool first = true;
-                for (const auto &[event_id, reaction] : reactions[i].reactions) {
+                for (const auto &reaction : reactions[i].reactions) {
                         if (!first)
                                 users += ", ";
                         else
                                 first = false;
-                        users +=
-                          QString::fromStdString(cache::displayName(room_id_, reaction.sender));
+                        users += QString::fromStdString(
+                          cache::displayName(room_id_, reaction.second.sender));
                 }
                 return users;
         }