wordpress-mobile / wordpress-mobile/WordPress-Android

Reader: Post comment disappears after changing the phone orientation

Open
#17,114 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Expected behavior

The comment must be posted and remain in the comment section correctly.

Actual behavior

After a fresh install, when trying to comment on a blog post from the reader the "Unable to post your comment" error message is displayed. After a few attempts, the comment is sent, but when changing the phone's orientation, the comment disappears.

Steps to reproduce the behavior
  1. Fresh install WP Android app
  2. Login
  3. Go to the reader (on any tab, I'm using Discover)
  4. Choose a post where the comment section is enabled and requires moderation
  5. Click on the balloon to add a comment
  6. Write a comment and click on the reply button
  7. Note the "Unable to post your comment" error message is displayed
  8. Try to hit the reply button a few more times until the comment gets sent
  9. Once the comment is visible on the post, change you phone orientation
  10. Note the comment is no longer visible in the comments section
  11. If you choose another post and add a comment, the "Unable to post your comment" message will no longer be displayed, it just happens in the first attempt

Videos available on GDrive

Tested on [device], Android [version], WPAndroid [version]

Motorola Moto G9 Play, Android 11, WPAndroid 20.6-rc-3

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

The issue names no files, tests, or entry points. First reproduce the Reader comment flow using the listed Android and WPAndroid versions, then trace how the first comment post and orientation change affect the visible comment list; done means the comment posts without the initial error and remains visible after rotation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.