plugin_e2ee: Ensure supported_tab_types is specified in plugin
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
9168b577cd
commit
dc894b9849
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,9 @@ class E2EEPlugin(BasePlugin):
|
||||||
if self.encryption_short_name is None:
|
if self.encryption_short_name is None:
|
||||||
self.encryption_short_name = self.encryption_name
|
self.encryption_short_name = self.encryption_name
|
||||||
|
|
||||||
|
if not self.supported_tab_types:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
# Ensure decryption is done before everything, so that other handlers
|
# Ensure decryption is done before everything, so that other handlers
|
||||||
# don't have to know about the encryption mechanism.
|
# don't have to know about the encryption mechanism.
|
||||||
self.api.add_event_handler('muc_msg', self._decrypt_wrapper, priority=0)
|
self.api.add_event_handler('muc_msg', self._decrypt_wrapper, priority=0)
|
||||||
|
|
Loading…
Reference in a new issue