From d7f76ccaf6cd9215f6306a6c6f4f9c75711bf433 Mon Sep 17 00:00:00 2001 From: Julian KOUNE Date: Mon, 2 Oct 2023 16:08:08 +0200 Subject: [PATCH] fix: remove download file when no attachment --- lib/pages/chat/chat.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index fe3e3fa96..ea426efb5 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -1426,7 +1426,8 @@ class ChatController extends State ChatContextMenuActions.copyMessage, ChatContextMenuActions.pinMessage, ChatContextMenuActions.forward, - if (PlatformInfos.isWeb) ChatContextMenuActions.downloadFile, + if (PlatformInfos.isWeb && event.hasAttachment) + ChatContextMenuActions.downloadFile, ]; return listAction.map((action) { return PopupMenuItem(