From 73c018667d3cafa13a9ac47d046fef8d6eb6a806 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 16 Aug 2024 09:11:05 +0200 Subject: [PATCH] Place star reaction always first. --- .../history/view/reactions/history_view_reactions.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/history/view/reactions/history_view_reactions.cpp b/Telegram/SourceFiles/history/view/reactions/history_view_reactions.cpp index fb99cc635..c1be784a2 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);