From a76c580d7ee18bfcbb7ce2686277c8f0ebedfe0e Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sun, 20 Feb 2022 10:58:12 +0100 Subject: [PATCH] fix duplicate detail status (#2345) --- .../com/keylesspalace/tusky/fragment/ViewThreadFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewThreadFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewThreadFragment.java index 378fc68b..603e344d 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewThreadFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewThreadFragment.java @@ -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;