QnD workaround for presence broadcast openfire bug
This commit is contained in:
parent
b73a453903
commit
d2fa73e625
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue