From ab280b44cc5c85d179dc655183e211587d586207 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 24 Jan 2021 11:31:17 +0100 Subject: XEP-0444: Fix emoji detection the emoji lib just released a major release after 5 years, which breaks the API. This new code is compatible with both. --- slixmpp/plugins/xep_0444/stanza.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slixmpp/plugins/xep_0444/stanza.py b/slixmpp/plugins/xep_0444/stanza.py index 338a244e..4d652116 100644 --- a/slixmpp/plugins/xep_0444/stanza.py +++ b/slixmpp/plugins/xep_0444/stanza.py @@ -10,6 +10,8 @@ from typing import Set, Iterable from slixmpp.xmlstream import ElementBase try: from emoji import UNICODE_EMOJI + if UNICODE_EMOJI.get('en'): + UNICODE_EMOJI = UNICODE_EMOJI['en'] except ImportError: UNICODE_EMOJI = None -- cgit v1.2.3