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-10-14 21:50:58 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-10-14 21:53:27 +0300
commit16305759af54f1043a975ffd3effcb9b1e147d54 (patch)
treeb082d443ec9f975aabd068e2887eec95942f34e1 /nbxmpp/structs.py
parentbae3cfd112d2cb8fd5aba91ce17dcff1021a24b9 (diff)
Add Chat State Notifications (XEP-0085) support
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r--nbxmpp/structs.py5
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):