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

Users custom status drops on change presence status #25940

Closed
ankar84 opened this issue Jun 21, 2022 · 10 comments · Fixed by #31237
Closed

Users custom status drops on change presence status #25940

ankar84 opened this issue Jun 21, 2022 · 10 comments · Fixed by #31237
Assignees
Milestone

Comments

@ankar84
Copy link

ankar84 commented Jun 21, 2022

Description:

Users custom status drops on change presence status

Steps to reproduce:

  1. Click avatar
  2. Choose Custom status
  3. Set some text status
  4. Change presence status (for example online => away)
  5. Check custom status is dropped

Expected behavior:

Custom status should remain despite of presence status.
I'm not 100% sure, but on a pre 4.8 versions that was true.

Actual behavior:

custom-status01

Server Setup Information:

  • Version of Rocket.Chat Server: 4.8.1
  • Operating System: OL8
  • Deployment Method: docker
  • Number of Running Instances: 20
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: v14.18.3
  • MongoDB Version: 4.4.14

Client Setup Information

  • Desktop App or Browser Version: Chrome 100
  • Operating System: Windows 10

Additional context

I guess that on a previous versions Custom status remain despite presence status changes

Relevant logs:

@ankar84
Copy link
Author

ankar84 commented Jan 13, 2023

5.3.5 still have that issue

@casalsgh
Copy link
Contributor

casalsgh commented Nov 3, 2023

@hardikbhatia777 is this something you might want to be assigned?

@VanshulB
Copy link

Hey @casalsgh I would like to work on this issue. Found useStatusText, but not sure if it's the file containing the issue. Is there a way to check if the user has set up a custom status cause the function isDefaultStatus() always returns true? Also, it should be user.statusText instead of status.name for getting custom status ? (cause the status object doesn't seem to have name property in it)?

@hardikbhatia777
Copy link
Contributor

hardikbhatia777 commented Nov 13, 2023

@hardikbhatia777 is this something you might want to be assigned?

Sorry, I did not get a notification for this post. I'll look into it and get back to you :)

@ggazzo
Copy link
Member

ggazzo commented Nov 15, 2023

@casalsgh this feature was implemented like that by design, its ok if we decide/want to change it, but not a bug.

and the changes and descriptions should reflect this decision

@casalsgh
Copy link
Contributor

FYI to all here -> Gazzo had the latest and feature is working as designed. Per our Product squad we are looking to change behaviour in the future as follows:
"Save the text and status in localstorage. When clicking ‘edit custom status' just fill out the fields with what we have saved there."

If anyone is in to perform behavior change that would be great (will assign)

@casalsgh casalsgh added the need help Need Help - Community label Dec 13, 2023
@hardikbhatia777
Copy link
Contributor

@casalsgh I'll be happy to work on this :)

Just for some clarity on the idea, you want there to be a menu which lists out previously saved custom statuses and a text box for anything new, like this?

image

@milton-rucks
Copy link

Hi @hardikbhatia777

There is no need to create a dropdown menu. Just bringing the text box with the previously used text is enough.

@gabriellsh
Copy link
Member

@hardikbhatia777 Just complementing, I don't think we have the need to save this info anywhere permanent, you could save it directly to the localstorage and then just fill the box with whatever was there before

@casalsgh
Copy link
Contributor

@ankar84 behaviour changes implemented with PR-31237 by @hardikbhatia777 . Will be on 6.6.0 release and with that considering this item closed. Please mention me here if you have any other comments

@casalsgh casalsgh removed the need help Need Help - Community label Dec 20, 2023
@casalsgh casalsgh added this to the 6.6 milestone Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants