diff --git a/CHANGELOG.md b/CHANGELOG.md index 70ab582..ffd4319 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [Unreleased] + +### Fixed + +- Updated to work with the new version (`2.0.0`) of `emoji` library. + ## [v0.7.1] ### Fixed @@ -153,6 +159,7 @@ - Initial release +[Unreleased]: https://github.com/adbenitez/deltachat-cursed/compare/v0.7.1...HEAD [v0.7.1]: https://github.com/adbenitez/deltachat-cursed/compare/v0.7.0...v0.7.1 [v0.7.0]: https://github.com/adbenitez/deltachat-cursed/compare/v0.6.0...v0.7.0 [v0.6.0]: https://github.com/adbenitez/deltachat-cursed/compare/v0.5.0...v0.6.0 diff --git a/requirements/requirements.txt b/requirements/requirements.txt index f68ac00..c1370b5 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -2,4 +2,4 @@ deltachat>=1.79.0 urwid>=2.1.2 urwid-readline>=0.13 notify-py>=0.3.3 -emoji>=1.7.0 +emoji>=2.0.0 diff --git a/src/deltachat_cursed/widgets/composer.py b/src/deltachat_cursed/widgets/composer.py index ddd2e38..63b33aa 100644 --- a/src/deltachat_cursed/widgets/composer.py +++ b/src/deltachat_cursed/widgets/composer.py @@ -6,10 +6,12 @@ import urwid import urwid_readline from deltachat import Chat, Message from emoji import demojize -from emoji.unicode_codes import EMOJI_UNICODE_ENGLISH +from emoji.unicode_codes import get_emoji_unicode_dict from ..util import COMMANDS, get_subtitle, shorten_text +EMOJI_UNICODE_ENGLISH = get_emoji_unicode_dict("en") + class ComposerWidget(urwid.Filler): def __init__(self, keymap: dict, display_emoji: bool) -> None: