diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-02-19 00:51:38 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-02-19 00:51:38 +0300 |
commit | bcceae507b9e2b6c0413ce913675af546005d23f (patch) | |
tree | 87855fb4fa21430e885fcc841e7d258a25f5a99b /nbxmpp/structs.py | |
parent | 54ea05ea7dc78de70b5e4dec7cb8e2757d752a04 (diff) |
Add Annotations (XEP-0145) module
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r-- | nbxmpp/structs.py | 3 |
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): |