e2ee-api: do not edit non-chat/groupchat messages
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
2778401b23
commit
47103fc5eb
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ class E2EEPlugin(BasePlugin):
|
|||
return None
|
||||
|
||||
def _encrypt(self, stanza: StanzaBase) -> Optional[StanzaBase]:
|
||||
if not isinstance(stanza, Message):
|
||||
if not isinstance(stanza, Message) or stanza['type'] not in ('chat', 'groupchat'):
|
||||
return stanza
|
||||
message = stanza
|
||||
|
||||
|
|
Loading…
Reference in a new issue