-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[IMPROVE] Add pagination to search messages And Fix the search for encrypted room #3212
Conversation
This pull request introduces 1 alert when merging 6f40f09 into c744672 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 838562e into a6ded95 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 41cb198 into a6ded95 - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This pull request introduces 1 alert when merging 52f6390 into a6ded95 - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test plan for both normal and encrypted rooms?
…om/RocketChat/Rocket.Chat.ReactNative into fix.pagination-search-message-view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
* [FIX] Pagination in SearchMessage through the javascript * Minor tweak * Remove unnecessary state update * Fix inconsistent value update * Minor change * Fixed searchMessages to work with new value of count * minor tweak * minor tweak * minor tweak * Fix encrypted search * Added Offset to lib/rocketchat and fixed the search * fixed the debounce in search message view * Needed to compare server version to lower than 3.17.0 Co-authored-by: Gerzon Z <gerzonc@icloud.com> Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com> Co-authored-by: Diego Mello <diegolmello@gmail.com> Co-authored-by: Levy Costa <levycosta471@gmail.com> Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Proposed changes
Pagination on SearchMessageView
Issue(s)
There isn't pagination when search
How to test or reproduce
For normal rooms:
a
, repeat more than 50 times for the pagination work/a/
in input to search fora
in any position of the sentence, this will catch the "a" and the "cat" or the "123a1"For encrypted rooms:
a
, repeat more than 50 times for the pagination work/a/
in input to search fora
in any position of the sentence, this will catch the "a" and the "cat" or the "123a1"Screenshots
Types of changes
Checklist
Further comments