futo-org / grayjay-android

Read-only mirror of Grayjay repo for issue tracking
https://gitlab.futo.org/videostreaming/grayjay
Other
803 stars 50 forks source link

NEW: Sometimes my like shows as 0, and when I unclick the like, the count shows "-1" likes, which should be impossible. #1360

Open qdirks opened 2 months ago

qdirks commented 2 months ago

What happened?

Affected Version

Steps to reproduce

  1. Search for the "Respect for LinusTechTips; he's EARNED it!" video by @rossmanngroup.
  2. Press on the "Respect for LinusTechTips; he's EARNED it!" video.
  3. Press the "POLYCENTRIC" tab button.
  4. Scroll down the comments until you start to see comments that have 0 likes.
  5. Like one of the comments that has 0 likes.
  6. Scroll the liked comment off screen, then scroll it back on screen. NOTE1: You must scroll the comment off screen at least 5 to 10 comments off screen for the bug to manifest. NOTE2: It doesn't matter which direction you scroll the comment off screen.
  7. Once you have scrolled the liked comment back on screen, observe that the comment you liked is again at 0 likes; the like button has the liked-effect applied, but the count is wrong (showing 0 instead of 1).
  8. Press the like button of the comment which you had previously liked, but which is now showing a count of 0 likes, and observe that the like count now shows -1.

Expected Behavior

When you like a comment, the like counter should include your like in the count, regardless of if the comment has scrolled off screen and then back on again.

Actual Behavior

The like count is incorrect when you scroll a liked comment off screen and then back on screen, at least until you close and reopen the video.

Additional Information

issue #310

Grayjay Version

264

What plugins are you seeing the problem on?

Youtube

Plugin Version

205

When do you experience the issue?

Relevant log output

No response

nikitax44 commented 1 month ago

encountered same thing with spotify