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

Add real away presence based on web extensions idle API #4712

Open
xadhoom opened this issue Oct 24, 2016 · 7 comments
Open

Add real away presence based on web extensions idle API #4712

xadhoom opened this issue Oct 24, 2016 · 7 comments
Labels
Milestone

Comments

@xadhoom
Copy link

xadhoom commented Oct 24, 2016

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.

@marceloschmidt
Copy link
Member

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

@xadhoom
Copy link
Author

xadhoom commented Oct 24, 2016

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.

@Nemra1
Copy link

Nemra1 commented Oct 26, 2016

im new with rocket.chat ..so can u pls explain this?
On Rocket.Chat this snippet must be added into the client
wher ican finde this snippet ?

@klatys
Copy link

klatys commented Aug 1, 2017

This is related to #736

@Sing-Li
Copy link
Member

Sing-Li commented Sep 5, 2019

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 Sing-Li closed this as completed Sep 5, 2019
@engelgabriel
Copy link
Member

@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.

@engelgabriel engelgabriel reopened this Sep 5, 2019
@engelgabriel engelgabriel added this to the 3.0.0 milestone Sep 5, 2019
@engelgabriel
Copy link
Member

@engelgabriel engelgabriel modified the milestones: 2.4.0, 4.1.0 Mar 17, 2020
@tassoevan tassoevan added stat: triaged Issue reviewed and properly tagged and removed Triaged labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants