-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Post list] Post are not marked read first time you get back to posts list #239
Comments
Thanks for the report, I'll check it and come back to you soon! |
There actually seems to be a small bug. I'll merge the above mentioned pull request and publish a new version. Thanks for continuing to test the application in the meantime. |
@AkesiSeli I just tested with latest beta and postposts are still not marked first time you visit and exit. It does only the second time or when refreshing posts list. |
That is very strange because I tested it, let us reopen it then. |
I take a look since it was working for you. |
Correction : thought yesterday it was working when using raccoon's back button, today nothing works after first exit. 😕 I am on subscribed communities list and I use compact layout and dark for UI theme. |
The supposed fix was worse than the bug, actually. I noticed images now glitch when you up vote/downvote everything due to a recomposition being triggered. I'll re-work on this shortly. |
I found an explanation for the nondeterministic behaviour you were experiencing (which I wasn't but I may just have been really lucky all the times): it was a concurrency issue. I'll fix it but it will require some time, since there are many screens with the same issue. |
Sorry about it but still not working. 😔 |
I ran out of ideas this time 😂 |
I don't know if it helps but it always work if post is upvoted, downvoted or saved in post and it's comments screen. If action to open a post is PostListMviModel.Intent.WillOpenDetail then is it normal it invokes markAsRead this way : markAsRead(post) ? |
Yes, it's the same thing (the argument name The main difference, to me, is that with upvote and downvote you remain in the same screen; whereas when you open the detail screen you move to another one so the post list screen changes its lifecycle state and stops processing events. Using the |
What I wanted to point out is that vote and save on detail screen (for post not it's comments) and going back to post list always mark read correctly the post in list of posts. |
Ok it can be tried (but for me it will have the same nondeterministic result). |
Describe the bug
When viewing a post then going back to posts list it's not marked as read. But if you open again the post and get back then it turns as read.
Weirdly it seems you need to go twice to a post to have post list marking it as read. It's like the first time a trigger fails, but second time it's OK.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Post should be marked as read when you first get back to list.
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: