Deleting post removes the post before actual delete is performed

Project Information

Expected Behavior

When deleting a post, it should only be removing after receiving a success response from server.

Actual Behavior

When deleting a post, it is removed immediately. If server returns an error, page need to be refreshed to see the post.

Steps to Reproduce

  1. Open the 1Rramp app and go to Profile.
  2. Click on Posts from the top navigation.
  3. Navigate to an older post with delete option (I can't see delete option for all the posts. It looks like it only shows up for posts not created using 1Ramp).
  4. Delete the post.
  5. Post is removed immediately but a error is thrown later once the call is complete.

ezgif com-video-to-gif 3

  • Device : Samsung S8
  • System Operating : 8.0.0 Oreo
  • App Version: 1.0

GitHub Account: https://github.com/mightypanda-x
Issue: https://github.com/hapramp/1Rramp-Android/issues/255

H2
H3
H4
Upload from PC
Video gallery
3 columns
2 columns
1 column
8 Comments