diff --git a/src/common/connection.py b/src/common/connection.py index 36bf7bb4c..fa9fdb78c 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -156,6 +156,7 @@ class Connection(ConnectionHandlers): self.blocked_groups = [] self.blocked_all = False self.music_track_info = 0 + self.pubsub_supported = False self.pep_supported = False self.mood = {} self.tune = {} diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 8b3dd6d26..6d38e0d37 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -885,6 +885,8 @@ class ConnectionDisco: gajim.interface.roster.music_track_changed(listener, track, self.name) break + if features.__contains__(common.xmpp.NS_PUBSUB): + self.pubsub_supported = True if features.__contains__(common.xmpp.NS_BYTESTREAM): our_jid = helpers.parse_jid(gajim.get_jid_from_account(self.name) +\ '/' + self.server_resource)