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-01 00:55:09 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-02-01 00:55:09 +0300
commita1f0d26a1a7357c7db66ea88cf86bd9d7c1a1eb8 (patch)
tree299cceb3aa582919b90cc79fb2943eb652f1f400 /nbxmpp/structs.py
parent1cbd94ea9d3e0564ebc1669e3ea0a9f03f3dd995 (diff)
Pubsub: Handle only new item notifications
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 a45a7ab..d4a5c1d 100644
--- a/nbxmpp/structs.py
+++ b/nbxmpp/structs.py
@@ -109,9 +109,14 @@ class MessageProperties:
self.voice_request = None
self.self_message = False
self.mam = None
+ self.pubsub = False
self.pubsub_event = None
@property
+ def is_pubsub(self):
+ return self.pubsub
+
+ @property
def is_pubsub_event(self):
return self.pubsub_event is not None