[CP Staging] Remove quick action report when leaving group chat#40511
[CP Staging] Remove quick action report when leaving group chat#40511
Conversation
| }, | ||
| ]; | ||
| // Clean up any quick actions for the report we're leaving from | ||
| if (quickAction?.chatReportID?.toString() === reportID) { |
There was a problem hiding this comment.
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.
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 |
|
@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 chatand add 3 particiapants+ > Assign Task > Add title > Add assignee > Confirm taskOffline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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