summary refs log tree commit diff
path: root/src/timeline/ReactionsModel.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2020-06-11 22:27:17 -0400
committerGitHub <noreply@github.com>2020-06-11 22:27:17 -0400
commit813884ee0cbacf5b5b7facab445d3c7cdc712084 (patch)
treef31c6e9545b58d873484e35ea987d486046faa0d /src/timeline/ReactionsModel.cpp
parentMerge pull request #218 from z33ky/alert-notifications (diff)
parentUpdate translations (diff)
downloadnheko-813884ee0cbacf5b5b7facab445d3c7cdc712084.tar.xz
Merge pull request #217 from Nheko-Reborn/reactions
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 {}; }