Adapt to nbxmpp changes

This commit is contained in:
lovetox
2021-02-28 13:36:45 +01:00
parent c689948332
commit d3b4a8a056
8 changed files with 25 additions and 25 deletions

View File

@@ -33,7 +33,7 @@ class KeyStore:
self._log = log
self._account = account
own_bare_jid = own_jid.getBare()
own_bare_jid = own_jid.bare
path = Path(configpaths.get('PLUGINS_DATA')) / 'pgplegacy' / own_bare_jid
if not path.exists():
path.mkdir(parents=True)

View File

@@ -114,7 +114,7 @@ class PGPLegacy(BaseModule):
def _on_presence_received(self, _con, _stanza, properties):
if properties.signed is None:
return
jid = properties.jid.getBare()
jid = properties.jid.bare
fingerprint = self._pgp.verify(properties.status, properties.signed)
if fingerprint is None:
@@ -142,7 +142,7 @@ class PGPLegacy(BaseModule):
if not properties.is_pgp_legacy or properties.from_muc:
return
from_jid = properties.jid.getBare()
from_jid = properties.jid.bare
self._log.info('Message received from: %s', from_jid)
payload = self._pgp.decrypt(properties.pgp_legacy)