Fix transport detection
This commit is contained in:
parent
3adbbbcea5
commit
a7e9182e05
|
@ -478,7 +478,8 @@ control=None, gc_contact=None, is_anonymous=True):
|
|||
if helpers.jid_is_blocked(account, jid):
|
||||
block_menuitem.set_no_show_all(True)
|
||||
block_menuitem.hide()
|
||||
if gajim.get_transport_name_from_jid(jid, use_config_setting=False):
|
||||
if gajim.get_transport_name_from_jid(jid, use_config_setting=False)\
|
||||
and transport != 'jabber':
|
||||
unblock_menuitem.set_no_show_all(True)
|
||||
unblock_menuitem.hide()
|
||||
unignore_menuitem.set_no_show_all(False)
|
||||
|
@ -490,7 +491,8 @@ control=None, gc_contact=None, is_anonymous=True):
|
|||
else:
|
||||
unblock_menuitem.set_no_show_all(True)
|
||||
unblock_menuitem.hide()
|
||||
if gajim.get_transport_name_from_jid(jid, use_config_setting=False):
|
||||
if gajim.get_transport_name_from_jid(jid, use_config_setting=False)\
|
||||
and transport != 'jabber':
|
||||
block_menuitem.set_no_show_all(True)
|
||||
block_menuitem.hide()
|
||||
ignore_menuitem.set_no_show_all(False)
|
||||
|
|
Loading…
Reference in New Issue