-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix avatar of the report action is not displayed properly if there is report preview action before it #30553
Conversation
… report preview action before it Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
@aimane-chnaif 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] |
@@ -760,6 +760,7 @@ export default compose( | |||
prevProps.shouldDisplayNewMarker === nextProps.shouldDisplayNewMarker && | |||
_.isEqual(prevProps.emojiReactions, nextProps.emojiReactions) && | |||
_.isEqual(prevProps.action, nextProps.action) && | |||
_.isEqual(prevProps.iouReport, nextProps.iouReport) && |
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.
What issue happens without this change?
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_notupdating_d.mp4
@aimane-chnaif There is a bug, if user A send a message to user B then user B send IOU request to user A, the avatar of request money is not displayed correctly (not updated) in user A device. After refresh the page the avatar displayed correctly.
src/libs/ReportActionsUtils.ts
Outdated
@@ -261,6 +261,11 @@ function isConsecutiveActionMadeByPreviousActor(reportActions: ReportAction[] | | |||
return false; | |||
} | |||
|
|||
// Do not group if report preview is the type of current or previous report action, but not both |
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.
but not both
is actually not correct.
If both are report preview and also both actorAccountID are same, then should be grouped.
We didn't add that condition here just because it's redundant thanks to next line.
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.
@aimane-chnaif what is the best comment here?
Should it be : Do not group if one of the previous or current report action type is report preview or both are report preview but have different actorAccountID
?
and Should we add : If current and previous report action type are report preview and have same actorAccountID these two report action will be grouped
?
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.
How about
Do not group if one of previous / current action is report preview and another one is not report preview
?
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.
Yes, that is good
Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
Friendly bump @aimane-chnaif, Could you review my pr when you have a chance? thank you... |
Friendly bump @aimane-chnaif ... |
1 similar comment
Friendly bump @aimane-chnaif ... |
Reviewer Checklist
Screenshots/VideosiOS: mWeb Safariweb-msafari.movMacOS: Chrome / Safariweb-msafari.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.
LGTM 🎉
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.3.96-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.96-15 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.97-7 🚀
|
Details
Fixed Issues
$ #26031
PROPOSAL: #26031 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
Android: Native
android-native_d.mp4
Android: mWeb Chrome
android-mweb_d.mp4
iOS: Native
ios-native_d.mp4
iOS: mWeb Safari
ios-msafari_d.mp4
MacOS: Chrome / Safari
macos-web_d.mp4
MacOS: Desktop
macos-desktop_d.mp4