removed buggy anti-presence-leak test

This commit is contained in:
Brendan Taylor 2007-08-20 08:19:29 +00:00
parent 0230c91e4c
commit 59b7e83fd5
1 changed files with 1 additions and 13 deletions

View File

@ -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