Store unavailable presence as last sent presence.

This commit is contained in:
Lance Stout 2011-06-18 14:36:19 -07:00
parent 0826a44d4b
commit adf6d49fd1

View file

@ -312,7 +312,8 @@ class RosterItem(object):
pto=self.jid) pto=self.jid)
if self.xmpp.is_component: if self.xmpp.is_component:
p['from'] = self.owner 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 self.last_status = p
p.send() p.send()