Decline active list when going visible

Declining the active list will switch us to the default list
This commit is contained in:
Philipp Hörist 2017-01-28 18:46:17 +01:00
parent 2c23b36ac3
commit a0a036f3eb
1 changed files with 1 additions and 6 deletions

View File

@ -2112,12 +2112,7 @@ class Connection(CommonConnection, ConnectionHandlers):
def _change_from_invisible(self):
if self.privacy_rules_supported:
if self.blocked_list:
self.set_active_list(self.privacy_default_list)
else:
iq = self.build_privacy_rule('visible', 'allow')
self.connection.send(iq)
self.set_active_list('visible')
self.set_active_list('')
def _update_status(self, show, msg):
xmpp_show = helpers.get_xmpp_show(show)