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:
-rw-r--r--nbxmpp/modules/pubsub.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nbxmpp/modules/pubsub.py b/nbxmpp/modules/pubsub.py
index 2bfde8c..ed0da8e 100644
--- a/nbxmpp/modules/pubsub.py
+++ b/nbxmpp/modules/pubsub.py
@@ -17,6 +17,7 @@
from collections import namedtuple
+from nbxmpp.const import MessageType
from nbxmpp.task import iq_request_task
from nbxmpp.errors import is_error
from nbxmpp.errors import PubSubStanzaError
@@ -47,6 +48,9 @@ class PubSub(BaseModule):
]
def _process_pubsub_base(self, _client, stanza, properties):
+ if properties.type not in (MessageType.HEADLINE, MessageType.NORMAL):
+ return
+
properties.pubsub = True
event = stanza.getTag('event', namespace=Namespace.PUBSUB_EVENT)