Decline active list when going visible
Declining the active list will switch us to the default list
This commit is contained in:
parent
2c23b36ac3
commit
a0a036f3eb
1 changed files with 1 additions and 6 deletions
|
@ -2112,12 +2112,7 @@ class Connection(CommonConnection, ConnectionHandlers):
|
||||||
|
|
||||||
def _change_from_invisible(self):
|
def _change_from_invisible(self):
|
||||||
if self.privacy_rules_supported:
|
if self.privacy_rules_supported:
|
||||||
if self.blocked_list:
|
self.set_active_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')
|
|
||||||
|
|
||||||
def _update_status(self, show, msg):
|
def _update_status(self, show, msg):
|
||||||
xmpp_show = helpers.get_xmpp_show(show)
|
xmpp_show = helpers.get_xmpp_show(show)
|
||||||
|
|
Loading…
Add table
Reference in a new issue