Fix Subscription menu
This commit is contained in:
parent
ce473d8bf0
commit
1082e42a76
1 changed files with 3 additions and 2 deletions
|
@ -437,8 +437,9 @@ control=None, gc_contact=None, is_anonymous=True):
|
||||||
ask_auth_menuitem.connect('activate', roster.req_sub, jid,
|
ask_auth_menuitem.connect('activate', roster.req_sub, jid,
|
||||||
_('I would like to add you to my roster'), account,
|
_('I would like to add you to my roster'), account,
|
||||||
contact.groups, contact.name)
|
contact.groups, contact.name)
|
||||||
if contact.sub in ('to', 'none') or gajim.get_transport_name_from_jid(
|
transport = gajim.get_transport_name_from_jid(jid,
|
||||||
jid, use_config_setting=False):
|
use_config_setting=False)
|
||||||
|
if contact.sub in ('to', 'none') or transport not in ['jabber', None]:
|
||||||
revoke_auth_menuitem.set_sensitive(False)
|
revoke_auth_menuitem.set_sensitive(False)
|
||||||
else:
|
else:
|
||||||
revoke_auth_menuitem.connect('activate', roster.revoke_auth, jid,
|
revoke_auth_menuitem.connect('activate', roster.revoke_auth, jid,
|
||||||
|
|
Loading…
Add table
Reference in a new issue