QnD workaround for presence broadcast openfire bug

This commit is contained in:
Goffi 2011-04-16 18:06:22 +02:00
commit d2fa73e625

View file

@ -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