From d2fa73e62523010b4af57b472c86a9c483f54e9a Mon Sep 17 00:00:00 2001 From: Goffi Date: Sat, 16 Apr 2011 18:06:22 +0200 Subject: [PATCH] QnD workaround for presence broadcast openfire bug --- src/sat.tac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sat.tac b/src/sat.tac index 2427f389..369649b5 100644 --- a/src/sat.tac +++ b/src/sat.tac @@ -670,6 +670,13 @@ class SAT(service.Service): assert(profile) to_jid = jid.JID(to) if to else None self.profiles[profile].presence.available(to_jid, show, statuses, priority) + #XXX: FIXME: temporary fix to work around openfire 3.7.0 bug (presence is not broadcasted to generating resource) + if statuses.has_key(''): + statuses['default'] = statuses[''] + del statuses[''] + self.bridge.presenceUpdate(self.profiles[profile].jid.full(), show, + int(priority), statuses, profile) + def subscription(self, subs_type, raw_jid, profile_key='@DEFAULT@'): """Called to manage subscription