bridge, frontends: display presence with the highest priority + reset your own presence when you (dis)connect
This commit is contained in:
parent
005ec59a8a
commit
bc9efbda82
1 changed files with 39 additions and 20 deletions
|
|
@ -608,6 +608,7 @@ class PrimitivusApp(QuickApp, InputHistory):
|
|||
|
||||
def setStatusOnline(self, online=True, show="", statuses={}):
|
||||
if not online or not statuses:
|
||||
self.status_bar.setPresenceStatus(show if online else 'unavailable', '')
|
||||
return
|
||||
try:
|
||||
self.status_bar.setPresenceStatus(show, statuses['default'])
|
||||
|
|
|
|||
Loading…
Reference in a new issue