Closed gglobalstep closed 3 years ago
I can replicate this issue. The original code that updates the lastRead
timestamp (which in turn determines if the unread indicator should appear) does not get updated until the InboxPanel
unmounts.
For some context behind this: the original InboxPanel
was only accessible via the activity panel, so it could be accessed on all WCA screens and would be unmounted when clicking outside of it to close the panel. Currently it sits on the homescreen, so navigating to another WCA page will trigger an update to that timestamp.
We should probably update the activity_panel_inbox_last_read
option when this component mounts instead of unmounts, but this will also require caching the unread time in mount prior to doing this so that the unread indicators don't immediately disappear.
I have a fix for this, will open a PR tomorrow.
Bug Description:
“Inbox unread indicator” fails to disappear from "WooCommerce->Home" after refreshing the page.
Environment:
macOS High Sierra v10.13.6 Safari: v13.1.2(13609.3.5.1.5) Chrome: v85.0.4183.83
Steps To Reproduce:
Actual Result:
“Inbox unread indicator” fails to disappear from "WooCommerce->Home" after refreshing the page.
Expected Result:
As per test instructions, “Inbox unread indicator” should disappear from "WooCommerce->Home" after refreshing the page.
Video:
https://user-images.githubusercontent.com/41110392/105512298-f2ca8180-5cf6-11eb-8a14-5a52492ea43b.mov
Isolating the problem (mark completed items with an [x]):