BoomApps-LLC / SteemApp-Android

The Steem application for Android
MIT License
3 stars 3 forks source link

Up voting a post shows inconsistent vote count on BLOG list and Post details #15

Closed ng-gist closed 6 years ago

ng-gist commented 6 years ago

Expected Behavior

Post should show same number of up-votes on both Blog list and Post details

Actual Behavior

Up voting a post shows inconsistent vote count on BLOG list and Post details.

Steps to Reproduce

Only 1 vote was cast on the post image.png

Possible Solution

Use the same Source of truth for storing the number of votes against a post.

Recording of the issue

https://youtu.be/NBTT64UW4oU

Device : Samsung S8 System Operating : 8.0.0 Oreo Browser : Google Chrome ( 66.0.3359.158 Version) App Version: 2.0.3 beta

tobias-g1 commented 6 years ago

I was able to replicate this issue, interestingly this issue doesn't seem to occur on my main account which has 2400 SP with 17% vote and was able to replicate on another account with < 5 (the vote was cast successfully) with 100%. The following explains this further:

When I tested on this post:

https://steemit.com/abc/@votezilla/abc

I was able to replicate the issue, however when I tested on this post:

https://steemit.com/test/@tobias-g/steem-app-testing

It worked as expected.

brazer commented 6 years ago

Thank you, @mightypanda-x and @tobias-g1. We will check it.

VitalyGrechikha commented 6 years ago

Hi @mightypanda-x Thank you, for your report. We used "net_votes" field from the response, but it doesn't consistent with actual voters count. So, we changed it and now the app takes a voters number from "active_votes" array with some rules