question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto-away will change a user from Offline->Away, even if they explicitly set themselves offline

See original GitHub issue

Hi JC and team,

First of all, thanks for this fantastic project.

We’re planning on deploying this and contributing and love the auto-away feature, but it seems to kick in even if the user has set themselves to “Offline”.

In other words: user wants to go offline, he/she changes his/her state to offline, but after X minutes the auto-away timer kicks in and puts them back online and set to “Away”.

It’s perhaps around here: if (this.auto_away > 0 && this.idle_seconds > this.auto_away && stat !== 'away' && stat !== 'xa') {

We understand there are limitations to “Offline”, including propagation, but our users really want it.

It seems that auto-away should only act on the user’s state if they are set to a normal “Online” state (not “Busy”, and not “Offline”); this is how AIM, ICQ, Google Talk/Hangouts and GAIM/Pidgin behave. Since there’s no xmpp “Offline” status, one option might be:

if (this.auto_away > 0 && this.idle_seconds > this.auto_away && stat == 'online') {

The only other feature we miss is the auto-open of a conversation on a page change/reload (this feature apparently went away in the last week or so), and ideally, notification sounds wouldn’t play if a conversation is in focus, or would be optional. We can open additional issues for those if you prefer.

Thanks again.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

<bountysource-plugin>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
jcbrandcommented, Mar 29, 2016

I think I agree with you @theclifbar that auto_away shouldn’t apply to states besides online and chat (which is a special case of online).

However, I’d like to hear what @thierrytiti thinks about it, since he originally contributed this feature. @thierrytiti Can you comment on this?

About the other issues you mention @theclifbar, sounds like you are using the master branch. This is risky because it’s undergone lots of refactoring recently, is still under development and not considered stable. Chats should remain open across page loads and notifications shouldn’t play if the browser window is in focus. If these problems persist, you can create tickets for them, but I suggest you first double-check again with the latest code from master.

0reactions
jcbrandcommented, Feb 25, 2017

Fixed. The user’s status won’t be set to ‘away’ or ‘xa’ if they’re in the ‘dnd’ state.

There is no longer an ‘offline’ state.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What are the Teams presence status change timings (away ...
Teams changes the status automatically if a user is away or offline. But can you help me out with the timings of these...
Read more >
Release Notes | Nicotine+
Usernames in the chat room log now have hotspots associated with them, meaning they can be left-clicked on to load the same popup...
Read more >
How to tell if someone with their status set to offline is actually ...
As stated by another user, one way to know they're online is by spotting them on a voice chat. Another way would be...
Read more >
https://raw.githubusercontent.com/nicotine-plus/ni...
... peer connections * Fixed a crash when an invalid debug log folder was set ... on tabs to change the active page...
Read more >
JAJC Manual - ‍ Funky Penguin
Avatars collection http://jajc.ksn.ru/downloads/avatars.rar. This is a collection of 32x32 images which you can use as avatars, to "represent" yourself to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found