diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-10-14 21:50:58 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-10-14 21:53:27 +0300 |
commit | 16305759af54f1043a975ffd3effcb9b1e147d54 (patch) | |
tree | b082d443ec9f975aabd068e2887eec95942f34e1 /nbxmpp/structs.py | |
parent | bae3cfd112d2cb8fd5aba91ce17dcff1021a24b9 (diff) |
Add Chat State Notifications (XEP-0085) support
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r-- | nbxmpp/structs.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py index eeea660..b735d48 100644 --- a/nbxmpp/structs.py +++ b/nbxmpp/structs.py @@ -558,6 +558,7 @@ class MessageProperties: self.forms = None self.xhtml = None self.security_label = None + self.chatstate = None @property def has_user_delay(self): @@ -662,6 +663,10 @@ class MessageProperties: def has_security_label(self): return self.security_label is not None + @property + def has_chatstate(self): + return self.chatstate is not None + class IqProperties: def __init__(self): |