Skip to content

Commit

Permalink
fix: remove download file when no attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian KOUNE authored and hoangdat committed Oct 3, 2023
1 parent 56048be commit d7f76cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pages/chat/chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,8 @@ class ChatController extends State<Chat>
ChatContextMenuActions.copyMessage,
ChatContextMenuActions.pinMessage,
ChatContextMenuActions.forward,
if (PlatformInfos.isWeb) ChatContextMenuActions.downloadFile,
if (PlatformInfos.isWeb && event.hasAttachment)
ChatContextMenuActions.downloadFile,
];
return listAction.map((action) {
return PopupMenuItem(
Expand Down

0 comments on commit d7f76cc

Please sign in to comment.