From 5228861b88076dc6bd8eaf46fa8c9b23cb5c2c3b Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Thu, 21 May 2020 21:21:35 -0400 Subject: Add reaction/redaction for in-line Reactions --- src/timeline/ReactionsModel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/timeline/ReactionsModel.cpp') 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 {}; } -- cgit 1.5.1