summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicoco <nicoco@nicoco.fr>2022-08-29 00:59:14 +0200
committernicoco <nicoco@nicoco.fr>2022-08-29 00:59:14 +0200
commitfbdff30ddabefc6beff90205b870194f3158d3f5 (patch)
treef0efe2261312631c7554f460608911c7451d7723
parent62701bc56276a85ba4ad22ddbec8acc0112116f9 (diff)
downloadslixmpp-fbdff30ddabefc6beff90205b870194f3158d3f5.tar.gz
slixmpp-fbdff30ddabefc6beff90205b870194f3158d3f5.tar.bz2
slixmpp-fbdff30ddabefc6beff90205b870194f3158d3f5.tar.xz
slixmpp-fbdff30ddabefc6beff90205b870194f3158d3f5.zip
fix emoji==2.0.0 compatibility
-rw-r--r--slixmpp/plugins/xep_0444/stanza.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/slixmpp/plugins/xep_0444/stanza.py b/slixmpp/plugins/xep_0444/stanza.py
index 02684df1..c9ee07d7 100644
--- a/slixmpp/plugins/xep_0444/stanza.py
+++ b/slixmpp/plugins/xep_0444/stanza.py
@@ -6,9 +6,7 @@
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']
+ from emoji import EMOJI_DATA as UNICODE_EMOJI
except ImportError:
UNICODE_EMOJI = None