Skip to content

[FIX] Make sure messages are loading properly - #3227

Merged
diegolmello merged 9 commits into
developfrom
fix.system-message-loading-properly
Oct 20, 2021
Merged

diegolmello merged 9 commits into
developfrom
fix.system-message-loading-properly

Conversation

@reinaldonetof

@reinaldonetof reinaldonetof commented Jun 18, 2021 •

Copy link
Copy Markdown
Contributor

Proposed changes

Conditional to compare the server version and filter or not the system messages

With the new update in backend RocketChat/Rocket.Chat#22364 , now the app doesn't need to filter the messages array to hide the system messages.

Issue(s)

Related #2393

How to test or reproduce

  • Create a channel and add over 50 system messages (play with user roles should be enough)
  • Hide system messages
  • Clear cache and try again
  • It should load older messages as usual

Screenshots

Before After

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

@gerzonc gerzonc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread app/views/RoomView/List/index.js Outdated
@diegolmello
diegolmello merged commit 42c69f0 into develop Oct 20, 2021
@diegolmello
diegolmello deleted the fix.system-message-loading-properly branch October 20, 2021 16:35
navislavo pushed a commit to NextiaDev/Rocket.Chat.ReactNative that referenced this pull request May 26, 2023
* [FIX] Conditional to compare the server version and filter or not the system messages

* instead of lowerThanOrEqualTo using lowerThan

* To do a reactive message list

* minor tweaks

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants