fix: Fixed file title

This commit is contained in:
Deven Joshi
2020-12-08 19:25:04 +05:30
parent 08c7b28198
commit b9a1f813ac
+1 -1
View File
@@ -1701,7 +1701,7 @@ class MessageInputState extends State<MessageInput> {
localUri: file.path != null ? Uri.parse(file.path) : null,
type: attachmentType,
extraData: extraDataMap.isNotEmpty ? extraDataMap : null,
title: file.name ?? 'File',
title: mimeType.type == 'file' ? file.name : null,
),
);