update to work with the new version (2.0.0) of emoji library

This commit is contained in:
adbenitez
2022-08-12 19:09:35 -04:00
parent 63520842f5
commit 9dde4aba15
3 changed files with 11 additions and 2 deletions
+7
View File
@@ -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
+1 -1
View File
@@ -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
+3 -1
View File
@@ -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: