fix: Unable to send a reply in thread after leaving the thread in offline mode#35869
fix: Unable to send a reply in thread after leaving the thread in offline mode#35869tienifr wants to merge 1 commit intoExpensify:mainfrom
Conversation
|
I found an issue with the left thread and sent a message afterward. It shows an error and the message is not saved.
Screen.Recording.2024-02-06.at.18.23.56.mp4This might be BE-related, but it doesn't reproduce on the created thread while offline. |
|
@grgia Waiting for your response above^ |
|
@grgia Can you help check the above question when you have a chance? Thanks |
|
@tienifr apologies, I was OOO. Looking now |
@mollfpr no we don't delete the report in Could you rephrase the question? Perhaps @blimpich or @srikarparsi can chime in as well since theyve worked on that command recently |
|
Yeah that |
|
Thank you @grgia and @blimpich for jumping in!
@blimpich I guess the behavior is expected here #35869 (comment)? |
|
I don't know if this is intended behavior per-say. The user should be able to comment on that report since it is a child report of the room that they have access to. It just seems like when the user is offline the backend decides that they don't have access to the thread but when they are online the backend (correctly) thinks that they do. @tienifr solution looks like it provides the correct behavior, but by fixing the frontend bug we seem to have revealed a separate backend bug. @grgia up to you but I'd probably make an internal Or, since this is a edge case, we could push this through knowing we have this bug and just create an issue for it for an Expensify Engineer to handle. Those are my thoughts. |
|
@blimpich Agree 👍, can you help add hold label on the issue? Thanks |
I think we can push through this PR to be merged first if we have the separate issue created. |
|
Yeah, I checked and the issue is fixed by #37355. I think we can close this PR and continue discussion how to move forward in the issue? |
Details
Fixed Issues
$ #34424
PROPOSAL: #34424 (comment)
Tests
Offline tests
Same as above
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.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 so 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
Android: Native
Screen.Recording.2024-02-06.at.11.18.27.mov
Android: mWeb Chrome
Screen.Recording.2024-02-06.at.11.15.17.mov
iOS: Native
Screen.Recording.2024-02-06.at.11.22.57.mov
iOS: mWeb Safari
Screen.Recording.2024-02-06.at.11.11.02.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-06.at.10.48.32.mp4
MacOS: Desktop
Screen.Recording.2024-02-06.at.10.54.45.mp4