2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add top reactors to paid reaction details.

This commit is contained in:
John Preston
2024-08-06 16:08:55 +02:00
parent 9bb1fa8782
commit afe30da9f4
14 changed files with 301 additions and 58 deletions

View File

@@ -2042,6 +2042,11 @@ auto MessageReactions::recent() const
return _recent;
}
auto MessageReactions::topPaid() const -> const std::vector<TopPaid> & {
static const auto kEmpty = std::vector<TopPaid>();
return _paid ? _paid->top : kEmpty;
}
bool MessageReactions::empty() const {
return _list.empty();
}