Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-02-19 00:51:38 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-02-19 00:51:38 +0300
commitbcceae507b9e2b6c0413ce913675af546005d23f (patch)
tree87855fb4fa21430e885fcc841e7d258a25f5a99b /nbxmpp/structs.py
parent54ea05ea7dc78de70b5e4dec7cb8e2757d752a04 (diff)
Add Annotations (XEP-0145) module
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r--nbxmpp/structs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py
index bdebf41..a04f72d 100644
--- a/nbxmpp/structs.py
+++ b/nbxmpp/structs.py
@@ -95,6 +95,9 @@ PGPKeyMetadata = namedtuple('PGPKeyMetadata', 'jid fingerprint date')
OMEMOMessage = namedtuple('OMEMOMessage', 'sid iv keys payload')
+AnnotationNote = namedtuple('AnnotationNote', 'jid data cdate mdate')
+AnnotationNote.__new__.__defaults__ = (None, None)
+
class OMEMOBundle(namedtuple('OMEMOBundle', 'spk spk_signature ik otpks')):
def pick_prekey(self):