diff options
author | lovetox <philipp@hoerist.com> | 2021-02-28 15:36:45 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2021-02-28 15:37:50 +0300 |
commit | d3b4a8a0569a6473661abbd2af76b1f2226df4fa (patch) | |
tree | 8d9010adb60b82a7d90a63f4c08f8c8a0d38bb58 /pgp/modules | |
parent | c689948332c9d0d3bd91222bbde6f2e57c6d68c7 (diff) |
Adapt to nbxmpp changes
Diffstat (limited to 'pgp/modules')
-rw-r--r-- | pgp/modules/pgp_legacy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pgp/modules/pgp_legacy.py b/pgp/modules/pgp_legacy.py index 8710ebc..4588e92 100644 --- a/pgp/modules/pgp_legacy.py +++ b/pgp/modules/pgp_legacy.py @@ -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) |