summary refs log tree commit diff
path: root/src/timeline/ReactionsModel.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2020-05-21 21:21:35 -0400
committerJoseph Donofry <joedonofry@gmail.com>2020-05-21 21:21:35 -0400
commit5228861b88076dc6bd8eaf46fa8c9b23cb5c2c3b (patch)
tree8097a760b05b1f93451e32e9c0e1e175665f8991 /src/timeline/ReactionsModel.cpp
parentMerge origin/master into reactions (diff)
downloadnheko-5228861b88076dc6bd8eaf46fa8c9b23cb5c2c3b.tar.xz
Add reaction/redaction for in-line Reactions
Diffstat (limited to 'src/timeline/ReactionsModel.cpp')
-rw-r--r--src/timeline/ReactionsModel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/timeline/ReactionsModel.cpp b/src/timeline/ReactionsModel.cpp

index 2e249819..1200e2ba 100644 --- a/src/timeline/ReactionsModel.cpp +++ b/src/timeline/ReactionsModel.cpp
@@ -10,7 +10,7 @@ ReactionsModel::roleNames() const {Key, "key"}, {Count, "counter"}, {Users, "users"}, - {SelfReacted, "selfReacted"}, + {SelfReactedEvent, "selfReactedEvent"}, }; } @@ -45,11 +45,11 @@ ReactionsModel::data(const QModelIndex &index, int role) const } return users; } - case SelfReacted: + case SelfReactedEvent: for (const auto &reaction : reactions[i].reactions) if (reaction.second.sender == http::client()->user_id().to_string()) - return true; - return false; + return QString::fromStdString(reaction.second.event_id); + return QStringLiteral(""); default: return {}; }