mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 11:09:56 +00:00
Store unavailable presence as last sent presence.
This commit is contained in:
parent
0826a44d4b
commit
adf6d49fd1
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue