OdyseeTeam / odysee-ios

The Odysee iOS app with wallet functionality.
MIT License
67 stars 22 forks source link

Posted comments should appear at the top of comment list #334

Closed tzarebczan closed 1 year ago

tzarebczan commented 2 years ago

From KP:

[ ] Posted comment on a channel page, and the comment is down below.

ktprograms commented 1 year ago

@tzarebczan While trying to debug this issue, I found that the comment_list call invoked right after the comment_create call doesn't have the latest comment, but when I exit the channel page and go back then it's there. I was also able to sometimes get it to show up with a 10 second delay, but this exiting and going back is less than 10 seconds.

infinite-persistence commented 1 year ago

The call is cached for a short duration.

(Just for reference) For the web app, we inject the newly-entered comment into the local/GUI list, so it appears immediately. If user hit refresh (comment_list), they would encounter the same missing-comment problem since the local one is cleared.