Skip to content

[BUG] Outdated current value for fields in Account settings after saving changes #19927

@aKn1ghtOut

Description

@aKn1ghtOut

Description:

In My Account, the current values aren't updated after changes have been saved without reloading.

Steps to reproduce:

  1. Go to My Account -> Preferences. In Highlights, start editing the "Highlighted words" TextArea.
  2. Enter "klt"
  3. Save Changes
  4. Change to "kl" [ "Save Changes" activates ]
  5. Change back to "klt" [ "Save Changes" does not deactivate even though this is the current value ]
  6. Delete all contents of textarea [ "Save Changes" deactivates even though this is not the current value ]

Expected behavior:

The newly entered values to be considered for validation for enabling the "Save Changes" button or for the values to be synchronized with the meteor server by subscriptions or by reloading the webpage.

Actual behavior:

The validation works incorrectly.

Server Setup Information:

  • Version of Rocket.Chat Server: 3.10.0-develop
  • Operating System: Ubuntu 20.10
  • Deployment Method: developing("meteor start")
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: 12.18.4 - x64
  • MongoDB Version: 4.2.8

Client Setup Information

  • Desktop App or Browser Version: Chrome 87.0.4280.88
  • Operating System: Ubuntu 20.10

Additional context

I'm aware of where the changes need to be made. However, the approach that should be implemented might need a bit of discussion, as the settings can either be synchronized with the server through subscriptions, the changes made just on that client can be kept in the loop or the whole page can be reloaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagedIssue reviewed and properly tagged

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions