wordpress-mobile / wordpress-mobile/WordPress-Android

[Comment] Like Status Resets to Unliked when Editing a Liked Comment

Open
#19,237 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Low [Type] Bug Comments
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

When editing a liked comment, the Like icon and its status (Liked) should not reset to Unliked.

Actual behavior

When editing a liked comment, the Like icon and its status (Liked) is being reset to Unliked. See screen recording below for when that flow works (for the Unliked status), and doesn't work (for the Liked status).

FYI: This incorrect behavior is UI only and does not affect the actual like status on the backend. You can verify that by refreshing the Comments screen and trying that again.

https://github.com/wordpress-mobile/WordPress-Android/assets/9729923/ded41e05-09be-4ad2-acdf-1def45b6474a

Steps to reproduce the behavior
  • Go to Comments screen and tap on any comment.
  • Like that comment and then edit it.
  • After editing that comment and clicking on the DONE button, notice that the Like icon and its Liked status got reset to Unliked.
Tested on [Pixel 4a], Android [13], JPAndroid [23.3-rc-1 (1370)]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue from the Comments screen: like a comment, edit it, and tap DONE. Trace the edit flow and verify that the Like icon and Liked status remain unchanged after editing, while confirming the backend status still behaves correctly after refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.