request to add contact when it's in not in roster group and we get a subscription request
This commit is contained in:
parent
f24b92cfc5
commit
dbce8b36c7
|
@ -1625,7 +1625,9 @@ class SubscriptionRequestWindow:
|
||||||
'''accept the request'''
|
'''accept the request'''
|
||||||
gajim.connections[self.account].send_authorization(self.jid)
|
gajim.connections[self.account].send_authorization(self.jid)
|
||||||
self.window.destroy()
|
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)
|
AddNewContactWindow(self.account, self.jid, self.user_nick)
|
||||||
|
|
||||||
def on_contact_info_activate(self, widget):
|
def on_contact_info_activate(self, widget):
|
||||||
|
|
Loading…
Reference in New Issue