2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Use reactions icon in context menu if more than 1 reaction type.

This commit is contained in:
John Preston
2021-12-30 16:07:52 +03:00
parent 3623fb1f9a
commit 1ab0f840f3
8 changed files with 16 additions and 5 deletions

View File

@@ -493,7 +493,9 @@ rpl::producer<Ui::WhoReadContent> WhoReacted(
[](const auto &pair) { return pair.second; });
// #TODO reactions
state->current.mostPopularReaction = item->reactions().front().first;
state->current.singleReaction = (list.size() == 1)
? list.front().first
: QString();
}
std::move(
idsWithReactions