removed buggy anti-presence-leak test
This commit is contained in:
parent
0230c91e4c
commit
59b7e83fd5
14
src/gajim.py
14
src/gajim.py
|
@ -1770,19 +1770,7 @@ class Interface:
|
||||||
self.dialog.destroy()
|
self.dialog.destroy()
|
||||||
return
|
return
|
||||||
|
|
||||||
contact = gajim.contacts.get_contact(account, jid.getStripped(), jid.getResource())
|
continue_with_negotiation()
|
||||||
|
|
||||||
# FIXME: shouldn't prompt if i don't have a subscription for remote but
|
|
||||||
# he has one for me. get_contact() returns None in this case?
|
|
||||||
if gajim.SHOW_LIST[gajim.connections[account].connected] == 'invisible' or not contact or\
|
|
||||||
contact.sub not in ('from', 'both'):
|
|
||||||
self.dialog = dialogs.YesNoDialog(_('Start session?'),
|
|
||||||
_('''%s would like to start a session with you. Should I respond?''') % jid,
|
|
||||||
on_response_yes = continue_with_negotiation,
|
|
||||||
on_response_no = ignore_negotiation,
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
continue_with_negotiation()
|
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue