Fix wrong inclusion check
This commit is contained in:
parent
b42c21d3e0
commit
09512065d4
|
@ -2009,14 +2009,13 @@ class Connection(CommonConnection, ConnectionHandlers):
|
||||||
# Remove stored bookmarks accessible to everyone.
|
# Remove stored bookmarks accessible to everyone.
|
||||||
self.send_pb_purge(our_jid, 'storage:bookmarks')
|
self.send_pb_purge(our_jid, 'storage:bookmarks')
|
||||||
self.send_pb_delete(our_jid, 'storage:bookmarks')
|
self.send_pb_delete(our_jid, 'storage:bookmarks')
|
||||||
if (nbxmpp.NS_MAM or nbxmpp.NS_MAM_1 or nbxmpp.NS_MAM_2) \
|
|
||||||
in obj.features:
|
|
||||||
if nbxmpp.NS_MAM_2 in obj.features:
|
if nbxmpp.NS_MAM_2 in obj.features:
|
||||||
self.archiving_namespace = nbxmpp.NS_MAM_2
|
self.archiving_namespace = nbxmpp.NS_MAM_2
|
||||||
elif nbxmpp.NS_MAM_1 in obj.features:
|
elif nbxmpp.NS_MAM_1 in obj.features:
|
||||||
self.archiving_namespace = nbxmpp.NS_MAM_1
|
self.archiving_namespace = nbxmpp.NS_MAM_1
|
||||||
else:
|
elif nbxmpp.NS_MAM in obj.features:
|
||||||
self.archiving_namespace = nbxmpp.NS_MAM
|
self.archiving_namespace = nbxmpp.NS_MAM
|
||||||
|
if self.archiving_namespace:
|
||||||
self.archiving_supported = True
|
self.archiving_supported = True
|
||||||
self.archiving_313_supported = True
|
self.archiving_313_supported = True
|
||||||
get_action(self.name + '-archive').set_enabled(True)
|
get_action(self.name + '-archive').set_enabled(True)
|
||||||
|
|
Loading…
Reference in New Issue