Respond to probes when the subscription is 'from', not 'to'.
This commit is contained in:
parent
5e9266ba90
commit
4598031dd2
@ -479,11 +479,11 @@ class RosterItem(object):
|
|||||||
self.xmpp.event('roster_subscription_removed', presence)
|
self.xmpp.event('roster_subscription_removed', presence)
|
||||||
|
|
||||||
def handle_probe(self, presence):
|
def handle_probe(self, presence):
|
||||||
if self['to']:
|
if self['from']:
|
||||||
self.send_last_presence()
|
self.send_last_presence()
|
||||||
if self['pending_out']:
|
if self['pending_out']:
|
||||||
self.subscribe()
|
self.subscribe()
|
||||||
if not self['to']:
|
if not self['from']:
|
||||||
self._unsubscribed()
|
self._unsubscribed()
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user