Viewed notifications not marked read
Expected behavior
Once a notification is read, it should be marked read and remain so.
Actual behavior
https://user-images.githubusercontent.com/1898325/154681980-3a26264e-c9f1-4416-9ca5-7508e16c263d.mp4
After reading a notification and returning to the Notifications screen, some notifications return to an "unread state" (lighter background).
Steps to reproduce the behavior
- Open the Notifications tab on an account with unread notifications
- Tap a notification and the app opens the corresponding screen
- Tap the back button to return to the notifications screen
- Repeat steps 2 to 3 until you notice a notification that either: a. is marked read, but after a few seconds goes back to an unread state (grey background) b. stays unread
Tested on Samsung Galaxy S10, Android 11, WPAndroid 19.2-rc-3
https://github.com/wordpress-mobile/WordPress-Android/issues/5061 is similar to this issue but seems to be specific to the scenario where users tap a push/system notification.
This issue describes a different scenario: the user has the app in foreground and reads notifications from within the notification tab.
I wouldn't rule out them having the same root cause, but unless we edit the above issue to include this scenario, it seems reasonable to leave them as separate issues. If folks think they're better merged, we can merge them 👍
Closing the issue since I wasn't able to reproduce with the latest version of the app (24.3-beta-1)
https://github.com/wordpress-mobile/WordPress-Android/assets/304044/9471d49f-62b6-480b-9800-513a5df0314a
Reopening this issue since I can reproduce it on version 24.9.
https://github.com/wordpress-mobile/WordPress-Android/assets/2471769/c9e6970f-43d2-435a-9168-889bc666f1fc