From 376374263c4934c87c66d55acb5cfaf04e75135c Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 14 Apr 2024 19:59:49 +0200 Subject: [PATCH] do not show message status for RTP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit we don’t track them well enough (we could though) --- .../siacs/conversations/ui/adapter/ConversationAdapter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java index 038d0d167..661d3738a 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java @@ -86,7 +86,9 @@ public class ConversationAdapter final boolean isRead = conversation.isRead(); final @DrawableRes Integer messageStatusDrawable = MessageAdapter.getMessageStatusAsDrawable(message, status); - if (messageStatusDrawable == null) { + if (message.getType() == Message.TYPE_RTP_SESSION) { + viewHolder.binding.messageStatus.setVisibility(View.GONE); + } else if (messageStatusDrawable == null) { if (status <= Message.STATUS_RECEIVED) { viewHolder.binding.messageStatus.setVisibility(View.GONE); } else {