From 7fa4eb079bcc1df637766dd7778f0da6bef90f44 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Fri, 22 Jan 2021 22:40:34 -0500 Subject: [PATCH] Improve responsiveness of conversation update rendering. --- .../securesms/conversation/ConversationUpdateItem.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationUpdateItem.java b/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationUpdateItem.java index 9f2ecc0e71..ab2bc3d242 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationUpdateItem.java +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationUpdateItem.java @@ -157,6 +157,8 @@ public final class ConversationUpdateItem extends FrameLayout LiveData spannableMessage = loading(liveUpdateMessage); observeDisplayBody(lifecycleOwner, spannableMessage); + + present(conversationMessage, nextMessageRecord, conversationRecipient); } /** After a short delay, if the main data hasn't shown yet, then a loading message is displayed. */ @@ -301,10 +303,10 @@ public final class ConversationUpdateItem extends FrameLayout @Override public void onChanged(Recipient recipient) { - if (recipient.getId() == conversationRecipient.getId()) { + if (recipient.getId() == conversationRecipient.getId() && (conversationRecipient == null || !conversationRecipient.hasSameContent(recipient))) { conversationRecipient = recipient; + present(conversationMessage, nextMessageRecord, conversationRecipient); } - present(conversationMessage, nextMessageRecord, conversationRecipient); } }