-
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
[CP Staging] Remove quick action report when leaving group chat #40511
Conversation
@@ -2449,6 +2456,15 @@ function leaveGroupChat(reportID: string) { | |||
value: null, | |||
}, | |||
]; | |||
// Clean up any quick actions for the report we're leaving from | |||
if (quickAction?.chatReportID?.toString() === reportID) { |
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.
Even though quickAction.chatReportID
is defined as a string, I've noticed that it was actually stored as an int in Onyx. I'm not sure why, since every flow that I traced had it as a string before saving it to Onyx.
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.
That's strange. For me, chatReportID
is stored as a string
in onyx. I also do not see usage of int
in any flow. Further, I also tried relogin and tried various flows and it still stores as string
. Looks good to me though.
Reviewer Checklist
Screenshots/VideosAndroid: Native40452-android-native.mp4Android: mWeb Chrome40452-mweb-chrome.mp4iOS: Native40452-ios-native.mp4iOS: mWeb Safari40452-mweb-safari.mp4MacOS: Chrome / Safari40452-web-safari.mp4MacOS: Desktop40452-desktop.mp4 |
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
@jasperhuangg 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. |
[CP Staging] Remove quick action report when leaving group chat (cherry picked from commit 0d595b3)
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.4.63-13 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
Clear out the quick action if the stored action is referencing a report we just left.
Fixed Issues
$ #40452
Tests
FAB > Start chat
and add 3 particiapants+ > Assign Task > Add title > Add assignee > Confirm task
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Screen.Recording.2024-04-18.at.4.17.41.PM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop