Replace sendPresence() with send_presence(), fix adding a contact.
This commit is contained in:
parent
3c9eac5dc9
commit
1252f21e10
1 changed files with 2 additions and 2 deletions
|
@ -758,8 +758,8 @@ class HandlerCore:
|
|||
if contact and contact.subscription in ('from', 'both'):
|
||||
return
|
||||
elif contact and contact.subscription == 'to':
|
||||
self.core.xmpp.sendPresence(pto=jid, ptype='subscribed')
|
||||
self.core.xmpp.sendPresence(pto=jid)
|
||||
self.core.xmpp.send_presence(pto=jid, ptype='subscribed')
|
||||
self.core.xmpp.send_presence(pto=jid)
|
||||
else:
|
||||
if not contact:
|
||||
contact = roster.get_and_set(jid)
|
||||
|
|
Loading…
Reference in a new issue