[openpgp] Raise StanzaDecrypted
This commit is contained in:
@@ -22,6 +22,7 @@ from pathlib import Path
|
||||
from nbxmpp.namespaces import Namespace
|
||||
from nbxmpp import Node
|
||||
from nbxmpp import StanzaMalformed
|
||||
from nbxmpp.exceptions import StanzaDecrypted
|
||||
from nbxmpp.structs import EncryptionData
|
||||
from nbxmpp.structs import MessageProperties
|
||||
from nbxmpp.structs import StanzaHandler
|
||||
@@ -254,6 +255,8 @@ class OpenPGP(BaseModule):
|
||||
trust=trust
|
||||
)
|
||||
|
||||
raise StanzaDecrypted
|
||||
|
||||
def encrypt_message(self, message: OutgoingMessage, callback):
|
||||
remote_jid = message.contact.jid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user