fix duplicate detail status (#2345)

This commit is contained in:
Konrad Pozniak 2022-02-20 10:58:12 +01:00 committed by GitHub
parent a90be172ee
commit a76c580d7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ public final class ViewThreadFragment extends SFragment implements
private int setStatus(Status status) {
if (statuses.size() > 0
&& statusIndex < statuses.size()
&& statuses.get(statusIndex).equals(status)) {
&& statuses.get(statusIndex).getId().equals(status.getId())) {
// Do not add this status on refresh, it's already in there.
statuses.set(statusIndex, status);
return statusIndex;