{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4712","repository_url":"https://api.github.com/repos/RocketChat/Rocket.Chat","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4712/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4712/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4712/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/4712","id":184801747,"number":4712,"title":"Add real away presence based on web extensions idle API ","user":{"login":"xadhoom","id":197981,"avatar_url":"https://avatars.githubusercontent.com/u/197981?v=3","gravatar_id":"","url":"https://api.github.com/users/xadhoom","html_url":"https://github.com/xadhoom","followers_url":"https://api.github.com/users/xadhoom/followers","following_url":"https://api.github.com/users/xadhoom/following{/other_user}","gists_url":"https://api.github.com/users/xadhoom/gists{/gist_id}","starred_url":"https://api.github.com/users/xadhoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xadhoom/subscriptions","organizations_url":"https://api.github.com/users/xadhoom/orgs","repos_url":"https://api.github.com/users/xadhoom/repos","events_url":"https://api.github.com/users/xadhoom/events{/privacy}","received_events_url":"https://api.github.com/users/xadhoom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/feat:%20app%20settings","name":"feat: app settings","color":"207de5"},{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/type:%20improvement","name":"type: improvement","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-24T10:19:23Z","updated_at":"2016-10-24T13:06:47Z","closed_at":null,"body":"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.\r\n\r\nSo I've built a simple Chrome web extension that allows to push real away status to Rocket.Chat.\r\n\r\nCode is here: https://github.com/VoiSmart/rocketchat-chrome-presence\r\n\r\nOn Rocket.Chat side the simple snippet cited into the [README.md](https://github.com/VoiSmart/rocketchat-chrome-presence/blob/master/README.md) is everything is needed to make it work with the extension (by adding it into the startup sequence in client/startup/)\r\n(basically is a bridge between the extension sandbox and the webpage)\r\n\r\nwhat do you think?\r\n\r\nIf the idea is welcome, I can add a PR for the above client code and make an extension for Firefox and maybe Edge."},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/255734895","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/4712#issuecomment-255734895","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4712","id":255734895,"user":{"login":"xadhoom","id":197981,"avatar_url":"https://avatars.githubusercontent.com/u/197981?v=3","gravatar_id":"","url":"https://api.github.com/users/xadhoom","html_url":"https://github.com/xadhoom","followers_url":"https://api.github.com/users/xadhoom/followers","following_url":"https://api.github.com/users/xadhoom/following{/other_user}","gists_url":"https://api.github.com/users/xadhoom/gists{/gist_id}","starred_url":"https://api.github.com/users/xadhoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xadhoom/subscriptions","organizations_url":"https://api.github.com/users/xadhoom/orgs","repos_url":"https://api.github.com/users/xadhoom/repos","events_url":"https://api.github.com/users/xadhoom/events{/privacy}","received_events_url":"https://api.github.com/users/xadhoom/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T13:06:47Z","updated_at":"2016-10-24T13:06:47Z","body":"pretty simple, right now the 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, when in reality you're working at your desk.\r\n\r\nbasically the rocket away status is \"away from browser tab\" not away from computer.\r\n\r\nThe [idle API](https://developer.chrome.com/apps/idle) 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.\r\n\r\nAs 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.\r\n\r\nUnfortunately these APIs are exposed only to a web extension, so a bridge must be done."}}
{"actor":{"display_login":"xadhoom"}}