mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-30 19:19:55 +00:00
Merge branch 'develop'
This commit is contained in:
commit
50ec99eee0
1 changed files with 2 additions and 2 deletions
|
@ -252,7 +252,7 @@ class basexmpp(object):
|
||||||
if presence['type'] in ('subscribe', 'subscribed', 'unsubscribe', 'unsubscribed'):
|
if presence['type'] in ('subscribe', 'subscribed', 'unsubscribe', 'unsubscribed'):
|
||||||
self.event('changed_subscription', presence)
|
self.event('changed_subscription', presence)
|
||||||
return
|
return
|
||||||
elif not presence['type'] in ('available', 'unavailable'):
|
elif not presence['type'] in ('available', 'unavailable') and not presence['type'] in presence.showtypes:
|
||||||
return
|
return
|
||||||
jid = presence['from'].bare
|
jid = presence['from'].bare
|
||||||
resource = presence['from'].resource
|
resource = presence['from'].resource
|
||||||
|
@ -280,7 +280,7 @@ class basexmpp(object):
|
||||||
del self.roster[jid]['presence'][resource]
|
del self.roster[jid]['presence'][resource]
|
||||||
else:
|
else:
|
||||||
del self.roster[jid]
|
del self.roster[jid]
|
||||||
elif oldroster != self.roster.get(jid, {'presence': {}})['presence'].get(resource, {}) and show != 'unavailable':
|
elif oldroster != self.roster.get(jid, {'presence': {}})['presence'].get(resource, {}):
|
||||||
self.event("changed_status", presence)
|
self.event("changed_status", presence)
|
||||||
name = ''
|
name = ''
|
||||||
if name:
|
if name:
|
||||||
|
|
Loading…
Reference in a new issue