# HG changeset patch # User Goffi # Date 1302969982 -7200 # Node ID cc8ffbfe938cfe1261c5c0b2e7b59bcf49c48aa8 # Parent f56108eb2880754b39317462905872339bfc6325 QnD workaround for presence broadcast openfire bug diff -r f56108eb2880 -r cc8ffbfe938c src/sat.tac --- a/src/sat.tac Fri Apr 15 02:03:10 2011 +0200 +++ b/src/sat.tac Sat Apr 16 18:06:22 2011 +0200 @@ -670,6 +670,13 @@ 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