Philipp Hörist pushed to branch gtk4 at gajim / gajim
Commits:
673d7572 by Philipp Hörist at 2024-10-20T11:18:23+02:00
fix: Multisort reactions
- - - - -
1 changed file:
- gajim/gtk/conversation/reactions_bar.py
Changes:
=====================================
gajim/gtk/conversation/reactions_bar.py
=====================================
@@ -117,7 +117,10 @@ def _aggregate_reactions(
)
)
- return dict(sorted(aggregated_reactions.items()))
+ # Multisort dict, first for emojis, afterwards for count
+ emoji_sorted = sorted(aggregated_reactions.items())
+ count_sorted = sorted(emoji_sorted, reverse=True, key=lambda tup:
len(tup[1]))
+ return dict(count_sorted)
def get_our_reactions(self) -> set[str]:
our_reactions: set[str] = set()
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/673d7572334f8604676579bcabd9b13e07b443a7
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/673d7572334f8604676579bcabd9b13e07b443a7
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]