diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2019-07-02 00:35:58 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-12-27 18:56:27 +0100 |
commit | c8f88658b4202f3f27da6066bb26e64cde07c390 (patch) | |
tree | 7c1f4324304515c07afc6033d3169ce3f6309143 /poezio/plugin_e2ee.py | |
parent | 42fa792aa5354d8a387c78514bf16ef857932345 (diff) | |
download | poezio-c8f88658b4202f3f27da6066bb26e64cde07c390.tar.gz poezio-c8f88658b4202f3f27da6066bb26e64cde07c390.tar.bz2 poezio-c8f88658b4202f3f27da6066bb26e64cde07c390.tar.xz poezio-c8f88658b4202f3f27da6066bb26e64cde07c390.zip |
omemo: adapt to new E2EE API
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'poezio/plugin_e2ee.py')
-rw-r--r-- | poezio/plugin_e2ee.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py index ab7df662..7adca206 100644 --- a/poezio/plugin_e2ee.py +++ b/poezio/plugin_e2ee.py @@ -219,7 +219,7 @@ class E2EEPlugin(BasePlugin): log.debug('Decrypted %s message: %r', self.encryption_name, message['body']) return None - def _encrypt(self, stanza: StanzaBase) -> Optional[StanzaBase]: + async def _encrypt(self, stanza: StanzaBase) -> Optional[StanzaBase]: if not isinstance(stanza, Message) or stanza['type'] not in ('chat', 'groupchat'): return stanza message = stanza @@ -274,7 +274,7 @@ class E2EEPlugin(BasePlugin): log.debug('Encrypted %s message: %r', self.encryption_name, message) return message - def decrypt(self, _message: Message, tab: ChatTabs): + async def decrypt(self, _message: Message, tab: ChatTabs): """Decryption method This is a method the plugin must implement. It is expected that this @@ -288,7 +288,7 @@ class E2EEPlugin(BasePlugin): raise NotImplementedError - def encrypt(self, _message: Message, tab: ChatTabs): + async def encrypt(self, _message: Message, tab: ChatTabs): """Encryption method This is a method the plugin must implement. It is expected that this |