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:
parent
99276b5b8b
commit
204f8b89f3
|
@ -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):
|
def on_req_usub(self, widget, contact, account):
|
||||||
'''Remove a contact'''
|
'''Remove a contact'''
|
||||||
|
check_string = _('I want this contact to know my status after removal')
|
||||||
|
if contact.sub == 'to':
|
||||||
|
check_string = ''
|
||||||
window = dialogs.ConfirmationDialogCheck(
|
window = dialogs.ConfirmationDialogCheck(
|
||||||
_('Contact "%s" will be removed from your roster') % (
|
_('Contact "%s" will be removed from your roster') % (
|
||||||
contact.get_shown_name()),
|
contact.get_shown_name()),
|
||||||
_('By removing this contact you also by default remove authorization resulting in him or her always seeing you as offline.'),
|
_('By removing this contact you also by default remove authorization resulting in him or her always seeing you as offline.'), check_string)
|
||||||
_('I want this contact to know my status after removal'))
|
|
||||||
# maybe use 2 optionboxes from which the contact can select? (better)
|
# maybe use 2 optionboxes from which the contact can select? (better)
|
||||||
if window.get_response() == gtk.RESPONSE_OK:
|
if window.get_response() == gtk.RESPONSE_OK:
|
||||||
remove_auth = True
|
remove_auth = True
|
||||||
|
|
Loading…
Reference in New Issue