Status appears incorrect when connected from multiple locations

Open
#12,526 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
nodejs, typescript
Domain
backend

Research direction

Start by reproducing the behavior with one native client and one web client, then trace how presence is updated when a location enters or leaves its screen saver state. Done means the user remains online while any location is active and is marked away only when all locations are away.

Written by the indexing model from the issue text.

Description

Description:

When I am connected to RocketChat from multiple locations and one of those locations the screen saver starts, I am marked away. I would expect RocketChat to require all locations to have the screen saver on for me to be marked away because I'm active on at least one location.

Steps to reproduce:
  1. Login using Native client on 1 computer
  2. Login using web client on another computer
  3. Let the computer with the web client goto screen saver
  4. See that status is away. Even setting my status to Online on the first computer doesn't work. It's automatically set back to away until I wake the second computer.
Server Setup Information:
  • Version of Rocket.Chat Server: 0.70.4
  • Operating System: Linux/Mac
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: ??
  • NodeJS Version: 8.11.3
  • MongoDB Version: ??
Relevant logs:
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RocketChat/Rocket.Chat

All issues in RocketChat/Rocket.Chat

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.