Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
d0b75ca1 by Philipp Hörist at 2024-05-12T17:21:44+02:00
imprv: Add EncryptionData struct
- - - - -
1 changed file:
- nbxmpp/structs.py
Changes:
=====================================
nbxmpp/structs.py
=====================================
@@ -1011,6 +1011,13 @@ class HatData:
return self._hat_map.any()
+@dataclass
+class EncryptionData:
+ protocol: str
+ key: str | None
+ trust: int
+
+
class Properties:
pass
@@ -1057,7 +1064,7 @@ class MessageProperties:
pubsub_event: Optional[PubSubEventData] = None
openpgp = None
omemo = None
- encrypted = None
+ encrypted: EncryptionData | None = None
pgp_legacy = None
marker: Optional[ChatMarker] = None
receipt: Optional[ReceiptData] = None
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/d0b75ca189a06cc53f6b730e4f708c1465313a55
--
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/d0b75ca189a06cc53f6b730e4f708c1465313a55
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]