-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
App shows an unread count of 1 while no unreads appear in LHN #25774
Comments
cc @joelbettner @thesahindia @luacmartins @Beamanator as you were reviewers of the potentially offending PR. and cc @fedirjh for conversation in Slack. |
Triggered auto assignment to @laurenreidexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
I don't think the linked PR is the RCA of this issue, it actually came from this PR: App/src/components/LHNOptionsList/OptionRowLHN.js Lines 71 to 74 in 00efce4
So if a report is muted, not pinned or focused it will disappear from LHN because it rendered null. We also didn't send notification if current notification preference of the room is daily or mute (but still received the pusher event), that's why App/src/libs/actions/Report.js Lines 1547 to 1552 in 00efce4
That's a little bit weird, I think we should still show the mute room but give it the lowest priority and not bold the text when we have new messages also update the logic here for not counting the mute report. App/src/libs/UnreadIndicatorUpdater/index.js Lines 10 to 13 in 00efce4
|
Yeah, but it seems still in progress, I didn't see the logic to handle unread for hidden report, or may be there's a backend fix for that 🤔 |
@chiragsalian can you take a look here? Looks like your PR might be the offending PR that caused this. |
Yeah i think this will be solved once this is live. Perhaps we can revisit this issue once my PR is live. With my changes even if you muted a chat it will show up in your LHN so this way you should be able to see those unread muted chats. |
Thanks for confirming @chiragsalian! Added a hold to this issue. |
on hold |
still on hold |
#25618 is deployed to prod as of Thursday, are we good to take off hold? |
Yes, we can remove the hold. Is this issue still reproducible? |
@shawnborton @chiragsalian can you confirm if this is still reproducible, or list the repro steps so I can test. thanks! |
Hmm well now what's happening is that I have the #announce room for the Lounge Workspace muted, but I still get unreads shown in my LHN for that room. Is that intended? |
According to the PR, I think yes. But I think it's little weird, how about my suggestion here?
|
Curious for @chiragsalian's thoughts on that one. |
@luacmartins, @fedirjh, @laurenreidexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@luacmartins, @fedirjh, @laurenreidexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@chiragsalian can you check this comment please? |
@shawnborton so you don't get notifications for it but the LHN still shows something as unread? |
Maybe we need to update the logic in isUnread to return false if the report is muted? |
Just chatted with Jason and apparently this is intended. According to E.cash: Default Rooms & Room Notifications design doc, muted chats should count towards the unread count:
|
So I think there's nothing to do here since this is the expected behavior. I'm gonna close the issue. Please reopen if I missed something! |
@fedirjh Here is the relevant Slack conversation.
It seems like the logic in this PR filters what is shown in the LHN as unread/read. However, I have noticed that a room that I have muted might have a new message, causing my unread count to go to 1, but this message does not show up in the LHN.
However, I see the unread message in Expensify.com:
The text was updated successfully, but these errors were encountered: