Rocket.Chat.Android icon indicating copy to clipboard operation
Rocket.Chat.Android copied to clipboard

User status always stays offline in Settings ignoring status changes made in the app or in other clients

Open mar-v opened this issue 7 years ago • 2 comments

Describe the bug

User status under Settings always stays offline, even though it has been changed in the app or in any other client and the actual status is reflected when you find the user by searching or see the user's details in any room.

To Reproduce

  1. Login to Android native app.
  2. Go to Settings - the user status is offline.
  3. Go to Settings->Profile->Status
  4. Change it to busy, tap Change status.
  5. Tap on the back arrow.
  6. The user status under username still shows offline

Expected behavior

A user's actual status should be reflected in Settings

Screenshots

image image

Devices and Versions

Your Rocket.Chat.Android version: 3.5.0 Your Rocket.Chat Server version: 1.4.0-develop Mobile device model and OS version: Samsung SM-J530F Android 8.1.0

mar-v avatar Aug 08 '19 13:08 mar-v

That info is retrieved from LocalStorage (a SharedPref) which does not seem to observe tre actual value of the status. I've mitigated by using the value retrived from the RCClient

rocketChatClientFactory.get(currentServer).me().status

aenonGit avatar Sep 03 '19 08:09 aenonGit

Closed by https://github.com/RocketChat/Rocket.Chat.Android/pull/2481

philipbrito avatar Sep 18 '19 01:09 philipbrito