-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix crash when swiping to chat immediately after creating a room #59207
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 crash when swiping to chat immediately after creating a room #59207
Conversation
@huult Is this ready for review? |
@jjcoffee Not yet. I will ping to review when it's ready |
@jjcoffee It's ready for review. Could you check it? Thanks. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2025-03-27_11.13.47.mp4Android: mWeb Chromeandroid-chrome-2025-03-27_11.22.25.mp4iOS: Nativeios-app-2025-03-27_12.07.40.mp4iOS: mWeb Safariios-safari-2025-03-27_12.11.10.mp4MacOS: Chrome / Safaridesktop-chrome-2025-03-27_11.26.37.mp4MacOS: Desktopdesktop-app-2025-03-27_11.33.56.mp4 |
@@ -106,8 +107,12 @@ function WorkspaceNewRoomPage() { | |||
description: parsedDescription, | |||
}); | |||
|
|||
setNewRoomReportID(policyReport.reportID); | |||
addPolicyReport(policyReport); | |||
InteractionManager.runAfterInteractions(() => { |
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.
@huult Could you explain the changes here? They weren't on your proposal as far as I can tell.
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.
@jjcoffee I added this to add a slight delay so we can disable tab switching. Without the delay, we're unable to prevent the tab from being switched.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
@jjcoffee You applied InteractionManager.runAfterInteractions(() => {, and you're still able to swipe?
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.
@huult Yes, the screen recording is just with your PR's changes. I don't get any crash, though, so I don't know if it's a big deal. The freezing mid-swipe could be an issue though (though pretty minor, since it's a bit of an edge case anyway!).
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.
Hmm weird I can't repro this today 😄
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.
This interaction manager causes this issue.
More details in this comment.
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/yuwenmemon in version: 9.1.23-1 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.23-7 🚀
|
Details
Fixed Issues
$ #58220
PROPOSAL: #58220 (comment)
Tests
Same QA step
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 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
Android: Native
Screen.Recording.2025-03-27.at.16.08.11.mp4
Android: mWeb Chrome
Screen.Recording.2025-03-27.at.16.18.04.mp4
iOS: Native
Screen.Recording.2025-03-27.at.16.19.08.mp4
iOS: mWeb Safari
Screen.Recording.2025-03-27.at.16.21.08.mp4
MacOS: Chrome / Safari
Screen.Recording.2025-03-27.at.16.22.18.mp4
MacOS: Desktop
Screen.Recording.2025-03-27.at.16.24.03.mp4