Store unavailable presence as last sent presence.
This commit is contained in:
parent
0826a44d4b
commit
adf6d49fd1
@ -312,7 +312,8 @@ class RosterItem(object):
|
||||
pto=self.jid)
|
||||
if self.xmpp.is_component:
|
||||
p['from'] = self.owner
|
||||
if p['type'] in p.showtypes or p['type'] == 'available':
|
||||
if p['type'] in p.showtypes or \
|
||||
p['type'] in ['available', 'unavailable']:
|
||||
self.last_status = p
|
||||
p.send()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user