-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Add real away presence based on web extensions idle API #4712
Comments
I apologize for my ignorance on this subject, but what are the limitations of what's currently developed and what are the changes by using it within an extension? TIA |
pretty simple, right now the rocket user presence plugin just records activity on the tab, and as soon as you switch the tab or go on another application, you're marked away (after a timeout), when in reality you're working at your desk. basically the rocket away status is "away from browser tab" not away from computer. The idle API reports the real status of the user checking the system activity, like any IM desktop client does, so you can be on another app/tab and the user status is still marked "online" since there's activity on the system. As soon as you stop "working" the timer fires and you're effectively away, going back online as soon as you start using your keyboard/mouse, without having to go on the Rocket.Chat browser tab. Unfortunately these APIs are exposed only to a web extension, so a bridge must be done. |
im new with rocket.chat ..so can u pls explain this? |
This is related to #736 |
We need a cross-browser solution for web client. But perhaps Electron client can be improved. Please go ahead and share you plugin with the community if you wish, |
@Sing-Li the source code has been shared already at https://github.com/VoiSmart/rocketchat-chrome-presence I think we should incorporate it into our own extension. |
I forked the code on https://github.com/RocketChat/rocketchat-chrome-presence so we can add it to our own extension https://github.com/RocketChat/Rocket.Chat.ScreenShare.Extensions |
One of the thing I miss from IM clients is a real away status, not the fake one of Rocket which is limited by what the browser allows to do.
So I've built a simple Chrome web extension that allows to push real away status to Rocket.Chat.
Code is here: https://github.com/VoiSmart/rocketchat-chrome-presence
On Rocket.Chat side the simple snippet cited into the README.md is everything is needed to make it work with the extension (by adding it into the startup sequence in client/startup/)
(basically is a bridge between the extension sandbox and the webpage)
what do you think?
If the idea is welcome, I can add a PR for the above client code and make an extension for Firefox and maybe Edge.
The text was updated successfully, but these errors were encountered: