when sub=to and we remove a contact, don't show the check button "allow other part to view my status" as he is already not interested in it. This result in removing contacts with sub=none, ask=none

This commit is contained in:
Yann Leboulanger 2006-03-30 21:00:19 +00:00
parent 99276b5b8b
commit 204f8b89f3
1 changed files with 4 additions and 2 deletions

View File

@ -1694,11 +1694,13 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
def on_req_usub(self, widget, contact, account):
'''Remove a contact'''
check_string = _('I want this contact to know my status after removal')
if contact.sub == 'to':
check_string = ''
window = dialogs.ConfirmationDialogCheck(
_('Contact "%s" will be removed from your roster') % (
contact.get_shown_name()),
_('By removing this contact you also by default remove authorization resulting in him or her always seeing you as offline.'),
_('I want this contact to know my status after removal'))
_('By removing this contact you also by default remove authorization resulting in him or her always seeing you as offline.'), check_string)
# maybe use 2 optionboxes from which the contact can select? (better)
if window.get_response() == gtk.RESPONSE_OK:
remove_auth = True