Allow encryption in normal messages
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
238eb8a0a1
commit
92e81d8f87
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ class E2EEPlugin(BasePlugin):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
async 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'):
|
if not isinstance(stanza, Message) or stanza['type'] not in ('normal', 'chat', 'groupchat'):
|
||||||
raise NothingToEncrypt()
|
raise NothingToEncrypt()
|
||||||
message = stanza
|
message = stanza
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue