From 288ec688349dd55e885c25f330c79c21e232277a Mon Sep 17 00:00:00 2001 From: Smarshal21 Date: Wed, 27 Sep 2023 21:21:02 +0530 Subject: [PATCH] Fixes --- .../talk/adapters/messages/PreviewMessageViewHolder.kt | 2 +- app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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 2bca2977053..5511636095c 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 @@ -128,7 +128,7 @@ abstract class PreviewMessageViewHolder(itemView: View?, payload: Any?) : ) } clickView!!.setOnLongClickListener { l: View? -> - onMessageViewLongClick(message) + previewMessageInterface!!.onPreviewMessageLongClick(message) true } } else { diff --git a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt index 75243e4040b..ebe1e656f9f 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -4187,8 +4187,6 @@ class ChatActivity : isOlderThanSixHours -> false message.systemMessageType != ChatMessage.SystemMessageType.DUMMY -> false message.isDeleted -> false - message.hasFileAttachment() -> false - OBJECT_MESSAGE == message.message -> false !CapabilitiesUtilNew.hasSpreedFeatureCapability(conversationUser, "delete-messages") -> false !participantPermissions.hasChatPermission() -> false else -> true