Repository navigation
Don't hide empty group chats - #42234
Conversation
|
|
||
| // Hide chats between two users that haven't been commented on from the LNH | ||
| if (excludeEmptyChats && isEmptyChat && isChatReport(report) && !isChatRoom(report) && !isPolicyExpenseChat(report) && canHideReport) { | ||
| if (excludeEmptyChats && isEmptyChat && isChatReport(report) && !isChatRoom(report) && !isPolicyExpenseChat(report) && !isGroupChat(report) && canHideReport) { |
There was a problem hiding this comment.
Let's fix this in the BE? They are only hidden because we set them to 'hidden' when someone creates one.
|
Yeahh I think we need both the frontend and the backend change right? Because even if the report isn't But the backend change is here. I'm about to step out so wasn't able to fill out everything but I'll do that tonight once I'm back. There's also an issue with Onyx updates I believe because even though we're setting the notificationPreference to |
Oh I see - so they are hiding when empty by default. If that's the case then you are right! We need this + the backend change since they will still hide because they are |
|
LGTM2. Testing shortly |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / Safarihttps://drive.google.com/file/d/1PgqtrgwAGicqOHMl7Nk19yAIYuteUGIP/view?usp=sharing MacOS: Desktopdesktop.mov |
|
Not sure if I am doing wrong but group chat still disappears from LHN when switch report https://drive.google.com/file/d/11fqzc0pXFCNI8sV4yRNGNb5UbokMFfgi/view?usp=sharinga |
|
Just fixed that. But even before fixing that, I'm not able to reproduce what you were facing @situchan. @marcaaron, do you think you can try creating a new GC with this branch and checking if it stays in the LHN when you navigate away? You don't need to checkout the Auth branch, just this one should be good. |
|
I debugged myself and confirmed @marcaaron is correct. Newly created group chat is not visible in LHN because "notificationPreference" is set to "hidden". Lines 98 to 105 in e8ae3c5 |
|
After latest change, works fine locally but not on another device. Repro step:
|
Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
|
@youssef-lr 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] |
I'm not able to reproduce this. Am I doing the right steps @situchan? Screen.Recording.2024-05-22.at.2.35.29.AM.mov |
yes, right step |
|
✋ 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/chiragsalian in version: 1.4.76-0 🚀
|
|
Just retested with fresh account on staging. Not able to reproduce on mWeb. |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.76-7 🚀
|
Details
Fixed Issues
$ #40314
PROPOSAL:
Tests
Offline tests
QA Steps
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
Android: Native
Didn't add because mWeb Chrome covers the smaller screen case
Android: mWeb Chrome
iOS: Native
Didn't add because mWeb Safari covers the smaller screen case
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop