From cabdb6a753cf7c4c9633e6c4a0dba8cc5ccb6ffd Mon Sep 17 00:00:00 2001 From: DenBond7 Date: Thu, 7 Nov 2024 15:49:27 +0200 Subject: [PATCH] Improved UI for drafts.| #74 --- .../email/ui/adapter/MessagesInThreadListAdapter.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/FlowCrypt/src/main/java/com/flowcrypt/email/ui/adapter/MessagesInThreadListAdapter.kt b/FlowCrypt/src/main/java/com/flowcrypt/email/ui/adapter/MessagesInThreadListAdapter.kt index 518435e84..4f0d23094 100644 --- a/FlowCrypt/src/main/java/com/flowcrypt/email/ui/adapter/MessagesInThreadListAdapter.kt +++ b/FlowCrypt/src/main/java/com/flowcrypt/email/ui/adapter/MessagesInThreadListAdapter.kt @@ -240,7 +240,12 @@ class MessagesInThreadListAdapter(private val onMessageActionsListener: OnMessag onMessageActionsListener: OnMessageActionsListener ) { val messageEntity = message.messageEntity - itemView.setOnClickListener { onMessageActionsListener.onMessageClick(position, message) } + itemView.setOnClickListener { + onMessageActionsListener.onMessageClick(position, message) + if (message.incomingMessageInfo == null) { + mapWebViewHeight.remove(position) + } + } val senderAddress = messageEntity.generateFromText(context) binding.imageViewAvatar.useGlideToApplyImageFromSource( source = AvatarModelLoader.SCHEMA_AVATAR + senderAddress