-
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
Don't hide empty group chats #42234
Don't hide empty group chats #42234
Conversation
@@ -5181,7 +5181,7 @@ function shouldReportBeInOptionList({ | |||
} | |||
|
|||
// 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
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.
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 |
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.
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 <[email protected]>
@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 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
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