request to add contact when it's in not in roster group and we get a subscription request

This commit is contained in:
Yann Leboulanger 2009-04-08 16:49:09 +00:00
parent f24b92cfc5
commit dbce8b36c7
1 changed files with 3 additions and 1 deletions

View File

@ -1625,7 +1625,9 @@ class SubscriptionRequestWindow:
'''accept the request'''
gajim.connections[self.account].send_authorization(self.jid)
self.window.destroy()
if self.jid not in gajim.contacts.get_jid_list(self.account):
contact = gajim.contacts.get_contact(self.account, self.jid)
if not contact or _('Not in Roster') in contact.groups:
# if self.jid not in gajim.contacts.get_jid_list(self.account):
AddNewContactWindow(self.account, self.jid, self.user_nick)
def on_contact_info_activate(self, widget):