diff --git a/app/src/main/java/com/nextcloud/talk/adapters/messages/IncomingPreviewMessageViewHolder.java b/app/src/main/java/com/nextcloud/talk/adapters/messages/IncomingPreviewMessageViewHolder.java index 4af1aa832e2..f948e8e9faf 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/messages/IncomingPreviewMessageViewHolder.java +++ b/app/src/main/java/com/nextcloud/talk/adapters/messages/IncomingPreviewMessageViewHolder.java @@ -60,6 +60,7 @@ public void onBind(@NonNull ChatMessage message) { ) { Spanned processedMessageText = null; binding.incomingPreviewMessageBubble.setBackgroundResource(R.drawable.shape_grouped_incoming_message); + binding.incomingPreviewMessageBubble.setOnClickListener(null); if (viewThemeUtils != null ) { processedMessageText = messageUtils.enrichChatMessageText( binding.messageCaption.getContext(), diff --git a/app/src/main/java/com/nextcloud/talk/adapters/messages/OutcomingPreviewMessageViewHolder.java b/app/src/main/java/com/nextcloud/talk/adapters/messages/OutcomingPreviewMessageViewHolder.java index 1441dfd927c..d2947d8b044 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/messages/OutcomingPreviewMessageViewHolder.java +++ b/app/src/main/java/com/nextcloud/talk/adapters/messages/OutcomingPreviewMessageViewHolder.java @@ -62,6 +62,7 @@ public void onBind(@NonNull ChatMessage message) { ) { Spanned processedMessageText = null; binding.outgoingPreviewMessageBubble.setBackgroundResource(R.drawable.shape_grouped_outcoming_message); + binding.outgoingPreviewMessageBubble.setOnClickListener(null); if (viewThemeUtils != null) { processedMessageText = messageUtils.enrichChatMessageText( binding.messageCaption.getContext(), diff --git a/app/src/main/java/com/nextcloud/talk/adapters/messages/PreviewMessageViewHolder.kt b/app/src/main/java/com/nextcloud/talk/adapters/messages/PreviewMessageViewHolder.kt index 9f72102af3a..e710348fb8d 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/messages/PreviewMessageViewHolder.kt +++ b/app/src/main/java/com/nextcloud/talk/adapters/messages/PreviewMessageViewHolder.kt @@ -197,6 +197,8 @@ abstract class PreviewMessageViewHolder(itemView: View?, payload: Any?) : } } } + + messageCaption.setOnClickListener(null) } private fun longClickOnReaction(chatMessage: ChatMessage) {