Closed singpolyma closed 1 year ago
Hello, may be a good idea. I am not sure we should set away status immediately or after a timer (which is more complex to implement)?
What is the behavior of others XMPP client?
@Ppjet6 what do you think about this?
I don't know if I would personally want this kind of feature for privacy reasons, but let me not stop you if that's something you want for your client. I won't be of much help here as I generally try to stay available always. I have poked people here and there to get an idea.
From a first glance:
I propose we could have a specific "auto" value which automatically set away/online presence based on the window focus. In order to respect user privacy, he/she will have to set manually this value.
Does it sounds good for everyone?
@nioc that's probably a good step yeah. Then we can probably override for guests with smaller local edits if we need to
I've found a better UI using a switch:
Looking for add it to guest to.
Not so easy... presence is build with as navbar item, without navbar (guest) rendering is broken. I have to think about it.
Done! I needed to refactor presence dropdown in a dedicated component and juggle with two kind of Bulma components (dropdown and navbar item).
Describe the solution you'd like
On window blur, set to away ("Window not active") on window focus set to online.