Mercurial > libervia-backend
comparison src/sat.tac @ 313:cc8ffbfe938c
QnD workaround for presence broadcast openfire bug
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 16 Apr 2011 18:06:22 +0200 |
parents | 15a12bf2bb62 |
children | b069055320b1 |
comparison
equal
deleted
inserted
replaced
312:f56108eb2880 | 313:cc8ffbfe938c |
---|---|
668 """Send our presence information""" | 668 """Send our presence information""" |
669 profile = self.memory.getProfileName(profile_key) | 669 profile = self.memory.getProfileName(profile_key) |
670 assert(profile) | 670 assert(profile) |
671 to_jid = jid.JID(to) if to else None | 671 to_jid = jid.JID(to) if to else None |
672 self.profiles[profile].presence.available(to_jid, show, statuses, priority) | 672 self.profiles[profile].presence.available(to_jid, show, statuses, priority) |
673 #XXX: FIXME: temporary fix to work around openfire 3.7.0 bug (presence is not broadcasted to generating resource) | |
674 if statuses.has_key(''): | |
675 statuses['default'] = statuses[''] | |
676 del statuses[''] | |
677 self.bridge.presenceUpdate(self.profiles[profile].jid.full(), show, | |
678 int(priority), statuses, profile) | |
679 | |
673 | 680 |
674 def subscription(self, subs_type, raw_jid, profile_key='@DEFAULT@'): | 681 def subscription(self, subs_type, raw_jid, profile_key='@DEFAULT@'): |
675 """Called to manage subscription | 682 """Called to manage subscription |
676 @param subs_type: subsciption type (cf RFC 3921) | 683 @param subs_type: subsciption type (cf RFC 3921) |
677 @param raw_jid: unicode entity's jid | 684 @param raw_jid: unicode entity's jid |