Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync User Presence to Host OS's Lock Status #1187

Open
theriverman opened this issue Feb 10, 2020 · 5 comments
Open

Sync User Presence to Host OS's Lock Status #1187

theriverman opened this issue Feb 10, 2020 · 5 comments

Comments

@theriverman
Copy link

I would like to improve Mattermost's presence handling when used in conjunction with the desktop application. On Windows and macOS, the user's have the opportunity to lock their workstations with a simple key combination (Windows+L or Ctrl + CMD + Q).

When a user locks their desktop, their status should become Away because they will not see new messages and will not be able to reply. This is the behaviour SkypeForBusiness does as well and it's basically a corporate standard due to this.

My initial proposal was synchronising the user's SfB status to Mattermost, but after some recent investigation I came to the conclusion it would not be a robust solution.

In the meanwhile, Electron 3.0.0 finally added support for watching the host OS's locked/unlock status changes and I'm confident this must the way how SfB implements this feature.

In case you agree with this proposal and willing to add a Help Wanted tag, I can immediately start working on the implementation myself (for both mattermost-desktop and mattermost-webapp).

@deanwhillier
Copy link
Contributor

Conversation can be found here: https://community.mattermost.com/core/pl/ok3wo5gzop81bdkcg9e34zorpc

@devinbinnie
Copy link
Member

Created a JIRA ticket to investigate at some point: https://mattermost.atlassian.net/browse/MM-40569

@theriverman
Copy link
Author

Conversation can be found here: https://community.mattermost.com/core/pl/ok3wo5gzop81bdkcg9e34zorpc

At one point the conversation has been moved to the Developers: Desktop App channel: https://community.mattermost.com/core/pl/a7n48be13jfgu8ujquzm6yp9nw

@ppar
Copy link

ppar commented Jul 19, 2022

I would very much like to see this implemented.

In fact, it's rather surprising that the client doesn't set your presence automatically. This has been the default behavior in all IM applications for the last couple of decades - either based on mouse activity or the workstation being locked - long before e.g. Skype for Business or Lync had seen the light of day.

@ppar
Copy link

ppar commented Jul 19, 2022

In the meanwhile, here's a workaround script (Linux/KDE) for anyone else encountering this ticket: https://github.com/ppar/mattermost-autoaway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@deanwhillier @ppar @theriverman @devinbinnie and others