diff --git a/Telegram/SourceFiles/history/view/reactions/history_view_reactions.cpp b/Telegram/SourceFiles/history/view/reactions/history_view_reactions.cpp index fb99cc6356d7d3..c1be784a2b3803 100644 --- a/Telegram/SourceFiles/history/view/reactions/history_view_reactions.cpp +++ b/Telegram/SourceFiles/history/view/reactions/history_view_reactions.cpp @@ -141,14 +141,14 @@ void InlineList::layoutButtons() { not_null b) { const auto acount = a->count - (a->my ? 1 : 0); const auto bcount = b->count - (b->my ? 1 : 0); - if (acount > bcount) { - return true; - } else if (acount < bcount) { - return false; - } else if (b->id.paid()) { + if (b->id.paid()) { return false; } else if (a->id.paid()) { return true; + } else if (acount > bcount) { + return true; + } else if (acount < bcount) { + return false; } return ranges::find(list, a->id, &::Data::Reaction::id) < ranges::find(list, b->id, &::Data::Reaction::id);