From d1e12cd46fffb56bc7fbe9f1043d01f714356722 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 18 Jun 2011 14:39:17 -0700 Subject: Need to store unavailable presence as last sent if broadcasted. --- sleekxmpp/roster/single.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sleekxmpp/roster/single.py b/sleekxmpp/roster/single.py index a8bb8d3a..deb1ac8b 100644 --- a/sleekxmpp/roster/single.py +++ b/sleekxmpp/roster/single.py @@ -265,7 +265,8 @@ class RosterNode(object): pnick=pnick) if self.xmpp.is_component: p['from'] = self.jid - 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() -- cgit v1.2.3