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

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;