primitivus: fix setting the presence and status
This commit is contained in:
parent
fdad3cf3c9
commit
e10070f923
2 changed files with 10 additions and 1 deletions
|
|
@ -117,6 +117,7 @@ class EditBar(sat_widgets.ModalEdit):
|
|||
elif command == 'messages':
|
||||
wid = sat_widgets.GenericList(logging.memoryGet())
|
||||
self.host.selectWidget(wid)
|
||||
# FIXME: reactivate the command
|
||||
# elif command == 'presence':
|
||||
# values = [value for value in commonConst.PRESENCE.keys()]
|
||||
# values = [value if value else 'online' for value in values] # the empty value actually means 'online'
|
||||
|
|
|
|||
|
|
@ -61,8 +61,9 @@ class StatusBar(urwid.Columns):
|
|||
elif isinstance(user_data, sat_widgets.AdvancedEdit):
|
||||
new = (previous[0], new_value[0])
|
||||
if new != previous:
|
||||
statuses = {C.PRESENCE_STATUSES_DEFAULT: new[1]} # FIXME: manage multilingual statuses
|
||||
for profile in self.host.profiles: # FIXME: for now all the profiles share the same status
|
||||
self.host.bridge.setPresence(show=new[0], status=new[1], profile_key=profile) # FIXME: manage multilingual statuses
|
||||
self.host.bridge.setPresence(show=new[0], statuses=statuses, profile_key=profile)
|
||||
self.setPresenceStatus(new[0], new[1])
|
||||
self.host.removePopUp()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue