Philipp Hörist pushed to branch reactions at gajim / gajim
Commits:
b4e6306a by Philipp Hörist at 2024-05-18T21:07:12+02:00
fix: Normalise outgoing emojis
- - - - -
1 changed file:
- gajim/common/modules/reactions.py
Changes:
=====================================
gajim/common/modules/reactions.py
=====================================
@@ -158,10 +158,15 @@ def send_reaction(
reactions: set[str],
) -> None:
+ valid, invalid = normalize_reactions(list(reactions))
+ if invalid:
+ codepoints = ', '.join([convert_to_codepoints(i) for i in invalid])
+ self._log.warning('Trying to send invalid reactions: %s',
codepoints)
+
message = OutgoingMessage(
account=self._account,
contact=contact,
- reaction_data=(reaction_id, reactions),
+ reaction_data=(reaction_id, valid),
play_sound=False,
)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/b4e6306aaf4e59a698ac8d19ec1b9dbb0d85e21f
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/b4e6306aaf4e59a698ac8d19ec1b9dbb0d85e21f
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]