Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0374.py @ 3967:f461f11ea176
plugin XEP-0384: Implementation of Automatic Trust Management:
- Implementation of Trust Messages (XEP-0434)
- Implementation of Automatic Trust Management (XEP-0450)
- Implementations directly as part of the OMEMO plugin, since omemo:2 is the only protocol supported by ATM at the moment
- Trust system selection updated to allow choice between manual trust with ATM and BTBV
- dev-requirements.txt updated to include additional requirements for the e2e tests
fix 376
author | Syndace <me@syndace.dev> |
---|---|
date | Fri, 28 Oct 2022 18:50:06 +0200 |
parents | 748094d5a74d |
children | 524856bd7b19 |
comparison
equal
deleted
inserted
replaced
3966:9f85369294f3 | 3967:f461f11ea176 |
---|---|
205 | 205 |
206 sender_jid = sender_user_jid | 206 sender_jid = sender_user_jid |
207 else: | 207 else: |
208 # I'm not sure why this check is required, this code is copied from XEP-0384 | 208 # I'm not sure why this check is required, this code is copied from XEP-0384 |
209 if sender_jid.userhostJID() == client.jid.userhostJID(): | 209 if sender_jid.userhostJID() == client.jid.userhostJID(): |
210 # TODO: I've seen this cause an exception "builtins.KeyError: 'to'", seems | |
211 # like "to" isn't always set. | |
212 try: | 210 try: |
213 feedback_jid = jid.JID(message_elt["to"]) | 211 feedback_jid = jid.JID(message_elt["to"]) |
214 except KeyError: | 212 except KeyError: |
215 feedback_jid = client.server_jid | 213 feedback_jid = client.server_jid |
216 else: | 214 else: |