You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Threads - Pin icon doesn't disappear right after user leaves a thread #46084
Version Number: 9.0.11-1 Reproducible in staging?: Y Reproducible in production?: N If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Action Performed:
Navigate to staging.new.expensify.com
Open a chat
Send a message
Hover over the message and click on reply in thread
Send a message inside the thread
Click on the header of the thread
Click on Pin
Click on Leave
Click on the pinned thread chat you just left
Expected Result:
When clicking 'Leave Thread' in step 8, the pin icon in the thread chat should either disappear, indicating the thread is no longer pinned, or persist when revisiting the thread later, maintaining its pinned status
Actual Result:
When clicking 'Leave Thread' in step 8, the pin icon remains in the left thread chat, but it disappears when revisiting the chat thread before joining
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
Pin icon doesn't disappear right after user leaves a thread
What is the root cause of that problem?
In this scenario, despite isHidden being true, shouldOverrideHidden is also true (due to report.isPinned being true). Therefore, isPinned will still be visible in LHN.
I'm also unable to repro this. Reproduction aside, seeing as this is a pretty minor issue that only affects threads and falls under a project that's currently paused, IMO this is not worth investigating much further. I think we should close this as Not a priority, @marcaaron what do you think?
Activity
melvin-bot commentedon Jul 23, 2024
Triggered auto assignment to @marcaaron (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.github-actions commentedon Jul 23, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
lanitochka17 commentedon Jul 23, 2024
We think that this bug might be related to #vip-vsp
melvin-bot commentedon Jul 23, 2024
Triggered auto assignment to @stephanieelliott (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.marcaaron commentedon Jul 23, 2024
Not deploy blocker worthy.
nyomanjyotisa commentedon Jul 24, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Pin icon doesn't disappear right after user leaves a thread
What is the root cause of that problem?
We don't handle to set the
isPinnedvalue tofalseon leave action hereWhat changes do you think we should make in order to solve the problem?
Set
isPinnedto false optimistically on leave action hereWhat alternative solutions did you explore? (Optional)
cretadn22 commentedon Jul 24, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Pin icon doesn't disappear right after user leaves a thread
What is the root cause of that problem?
In this scenario, despite isHidden being true, shouldOverrideHidden is also true (due to report.isPinned being true). Therefore, isPinned will still be visible in LHN.
App/src/libs/SidebarUtils.ts
Lines 138 to 141 in 2bb1d00
What changes do you think we should make in order to solve the problem?
App/src/libs/SidebarUtils.ts
Line 138 in 2bb1d00
remove report.isPinned condition
What alternative solutions did you explore? (Optional)
App/src/libs/actions/Report.ts
Lines 2731 to 2740 in 2bb1d00
When setting
notificationPreferencetoCONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN, we must also ensure that isPinned is set to false.tsa321 commentedon Jul 24, 2024
Maybe the the expected result is not to automatically unpin the thread report, then this issue would be the back end issue.
Tony-MK commentedon Jul 24, 2024
This issue is not reproducible on the latest main.
stephanieelliott commentedon Jul 25, 2024
I'm also unable to repro this. Reproduction aside, seeing as this is a pretty minor issue that only affects threads and falls under a project that's currently paused, IMO this is not worth investigating much further. I think we should close this as
Not a priority, @marcaaron what do you think?marcaaron commentedon Jul 26, 2024
Works for me!