check server features in correct stanza
This commit is contained in:
parent
ea957fe015
commit
8d6ff98ee9
1 changed files with 26 additions and 25 deletions
|
@ -363,7 +363,8 @@ class ConnectionDisco:
|
|||
self.vcard_supported = True
|
||||
if features.__contains__(common.xmpp.NS_PUBSUB):
|
||||
self.pubsub_supported = True
|
||||
if features.__contains__(common.xmpp.NS_PUBSUB_PUBLISH_OPTIONS):
|
||||
if features.__contains__(
|
||||
common.xmpp.NS_PUBSUB_PUBLISH_OPTIONS):
|
||||
self.pubsub_publish_options_supported = True
|
||||
else:
|
||||
# Remove stored bookmarks accessible to everyone.
|
||||
|
@ -381,8 +382,8 @@ class ConnectionDisco:
|
|||
if features.__contains__(common.xmpp.NS_ARCHIVE_PREF):
|
||||
self.archive_pref_supported = True
|
||||
if features.__contains__(common.xmpp.NS_BYTESTREAM):
|
||||
our_jid = helpers.parse_jid(gajim.get_jid_from_account(self.name) +\
|
||||
'/' + self.server_resource)
|
||||
our_jid = helpers.parse_jid(gajim.get_jid_from_account(
|
||||
self.name) + '/' + self.server_resource)
|
||||
gajim.proxy65_manager.resolve(jid, self.connection, our_jid,
|
||||
self.name)
|
||||
if features.__contains__(common.xmpp.NS_MUC) and is_muc:
|
||||
|
|
Loading…
Add table
Reference in a new issue