Skip to content

Commit

Permalink
Place star reaction always first.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Aug 16, 2024
1 parent 3905fc7 commit 73c0186
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ void InlineList::layoutButtons() {
not_null<const MessageReaction*> 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);
Expand Down

0 comments on commit 73c0186

Please sign in to comment.