check server features in correct stanza
This commit is contained in:
parent
ea957fe015
commit
8d6ff98ee9
|
@ -359,32 +359,33 @@ class ConnectionDisco:
|
|||
'pep':
|
||||
self.pep_supported = True
|
||||
break
|
||||
if features.__contains__(common.xmpp.NS_VCARD):
|
||||
self.vcard_supported = True
|
||||
if features.__contains__(common.xmpp.NS_PUBSUB):
|
||||
self.pubsub_supported = True
|
||||
if features.__contains__(common.xmpp.NS_PUBSUB_PUBLISH_OPTIONS):
|
||||
self.pubsub_publish_options_supported = True
|
||||
else:
|
||||
# Remove stored bookmarks accessible to everyone.
|
||||
our_jid = gajim.get_jid_from_account(self.name)
|
||||
self.send_pb_purge(our_jid, 'storage:bookmarks')
|
||||
self.send_pb_delete(our_jid, 'storage:bookmarks')
|
||||
if features.__contains__(common.xmpp.NS_ARCHIVE):
|
||||
self.archiving_supported = True
|
||||
if features.__contains__(common.xmpp.NS_ARCHIVE_AUTO):
|
||||
self.archive_auto_supported = True
|
||||
if features.__contains__(common.xmpp.NS_ARCHIVE_MANAGE):
|
||||
self.archive_manage_supported = True
|
||||
if features.__contains__(common.xmpp.NS_ARCHIVE_MANUAL):
|
||||
self.archive_manual_supported = True
|
||||
if features.__contains__(common.xmpp.NS_ARCHIVE_PREF):
|
||||
self.archive_pref_supported = True
|
||||
if features.__contains__(common.xmpp.NS_VCARD):
|
||||
self.vcard_supported = True
|
||||
if features.__contains__(common.xmpp.NS_PUBSUB):
|
||||
self.pubsub_supported = True
|
||||
if features.__contains__(
|
||||
common.xmpp.NS_PUBSUB_PUBLISH_OPTIONS):
|
||||
self.pubsub_publish_options_supported = True
|
||||
else:
|
||||
# Remove stored bookmarks accessible to everyone.
|
||||
our_jid = gajim.get_jid_from_account(self.name)
|
||||
self.send_pb_purge(our_jid, 'storage:bookmarks')
|
||||
self.send_pb_delete(our_jid, 'storage:bookmarks')
|
||||
if features.__contains__(common.xmpp.NS_ARCHIVE):
|
||||
self.archiving_supported = True
|
||||
if features.__contains__(common.xmpp.NS_ARCHIVE_AUTO):
|
||||
self.archive_auto_supported = True
|
||||
if features.__contains__(common.xmpp.NS_ARCHIVE_MANAGE):
|
||||
self.archive_manage_supported = True
|
||||
if features.__contains__(common.xmpp.NS_ARCHIVE_MANUAL):
|
||||
self.archive_manual_supported = True
|
||||
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)
|
||||
self.name)
|
||||
if features.__contains__(common.xmpp.NS_MUC) and is_muc:
|
||||
type_ = transport_type or 'jabber'
|
||||
self.muc_jid[type_] = jid
|
||||
|
|
Loading…
Reference in New Issue