Upvote will not be displayed in feed if post is upvoted when opened
Jerboa Version Latest from main 0dab56d
Android version + phone Android 12/ OP7Pro
Describe the bug Upvote will not be displayed in feed if post is upvoted when opened. Maybe post in feed and opened post should share view model? At the moment only id of post is passed when opening post's activity
To Reproduce Steps to reproduce the behavior:
- Go to feed
- Click on any post
- Upvote
- Close post
- See that there's no upvote despite the fact that it was just upvoted
Verified.
@MV-GH What do you think would be a good way to handle this? I'm out of ideas and its definitely one of the bigger annoyances.
We have the infrastructure already to handle this, I just haven't had the the time to Fully implement it. Take the same approach we do with read status. When read is updated put thr whole post on the navigationstack. In the feed there is an optional on back which updates the feed with that comment.
Now to solve this for all attributes we can take a more general approach:
- Intercept back, pop post on nav stack
- proxy the set of the Post ApiState on set also pop the post on the set
I have also ideas to solve backspace bug, we can just use the old view system text thing and wrap in a composable, same way we do with markdown that is also a AndroidView
But only for big text areas. I expect other issues so minimize its usage.