[openpgp] Raise StanzaDecrypted

This commit is contained in:
Philipp Hörist
2024-05-21 10:51:08 +02:00
parent 75ac02a14b
commit c2e27ae217

View File

@@ -22,6 +22,7 @@ from pathlib import Path
from nbxmpp.namespaces import Namespace from nbxmpp.namespaces import Namespace
from nbxmpp import Node from nbxmpp import Node
from nbxmpp import StanzaMalformed from nbxmpp import StanzaMalformed
from nbxmpp.exceptions import StanzaDecrypted
from nbxmpp.structs import EncryptionData from nbxmpp.structs import EncryptionData
from nbxmpp.structs import MessageProperties from nbxmpp.structs import MessageProperties
from nbxmpp.structs import StanzaHandler from nbxmpp.structs import StanzaHandler
@@ -254,6 +255,8 @@ class OpenPGP(BaseModule):
trust=trust trust=trust
) )
raise StanzaDecrypted
def encrypt_message(self, message: OutgoingMessage, callback): def encrypt_message(self, message: OutgoingMessage, callback):
remote_jid = message.contact.jid remote_jid = message.contact.jid