core, plugin XEP-0045, frontends: change frontend method "setStatusOnline" for "setPresenceStatus":
- remove parameter "online" (can be guess from "presence" value)
- process "statuses" dict in quick_frontend, so this method can get a simple unicode "status"
- add C.PRESENCE_STATUSES_DEFAULT to define the key to use for fallback status
This commit is contained in:
parent
e4cb7f59d3
commit
41b549f7ae
1 changed files with 30 additions and 38 deletions
|
|
@ -603,8 +603,7 @@ class SAT(service.Service):
|
|||
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 '' in statuses:
|
||||
statuses['default'] = statuses['']
|
||||
del statuses['']
|
||||
statuses[C.PRESENCE_STATUSES_DEFAULT] = statuses.pop('')
|
||||
self.bridge.presenceUpdate(self.profiles[profile].jid.full(), show,
|
||||
int(priority), statuses, profile)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue