-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Support new emojiReaction data format #17996
Conversation
TODOs:
|
Updated! |
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!
Aweseome! @rushatgabhane @neil-marcellini if you could check this out before there are more conflicts I would really appreciate it :) |
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.
Looks good to me assuming it tests well.
Bump @rushatgabhane you're the last reviewer 😄 |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-20.at.11.49.02.movMobile Web - ChromeWhatsApp.Video.2023-07-20.at.12.07.16.mp4DesktopScreen.Recording.2023-07-20.at.11.49.02.moviOSScreen.Recording.2023-07-20.at.11.34.03.movAndroidScreen.Recording.2023-07-20.at.11.32.44.mov |
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.
Bug: can't react to the first message in a thread.
Steps:
- Send a message
- Click reply in thread
- React to the message
Expected: Can react to the first (parent) message of a thread
Actual: can't react
Screen.Recording.2023-07-20.at.09.39.01.mov
@rushatgabhane PR which fixes that bug is on hold for this PR - #22235 (comment) |
@aimane-chnaif thanks for the info! Moving ahead with the PR |
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 too
@techievivek Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Is that regression of this PR? screen-recording-2023-07-20-at-45905-pm_i7reUDxU.mp4 |
🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.3.44-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.3.45-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|
Details
In order to facilitate the use of
Onyx.merge()
when adding and removing emoji, the data formation ofreactions
was changed from an array toemojiReactions
which is an object. This allows for much better incremental changes of the emoji data so that the entire array of emojis doesn't have to be passed toOnyx.set()
which is known for causing race conditions (explained in detail here).This leads to a lot of cascading changes for how emojis are parsed, displayed, and modified, which this PR is updating.
Lastly, there is a network param called
useEmojiReactions
which allows the PHP and Auth to maintain backwards compatibility to support bothreactions
andemojiReactions
at the same time while the front-end code is being migrated.Old Format:
New Format:
Fixed Issues
$ #19531
Tests
Offline tests
QA Steps
Same as the tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android