plugin_e2ee: Ensure supported_tab_types is specified in plugin

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-03-17 00:11:07 +01:00
parent 9168b577cd
commit dc894b9849
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -151,6 +151,9 @@ class E2EEPlugin(BasePlugin):
if self.encryption_short_name is None:
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
# don't have to know about the encryption mechanism.
self.api.add_event_handler('muc_msg', self._decrypt_wrapper, priority=0)