diff --git a/lib/pages/chat_list/chat_list_item.dart b/lib/pages/chat_list/chat_list_item.dart index 3b1154e0..cc4ec38c 100644 --- a/lib/pages/chat_list/chat_list_item.dart +++ b/lib/pages/chat_list/chat_list_item.dart @@ -96,13 +96,15 @@ class ChatListItem extends StatelessWidget { // Share content into this room final shareContent = Matrix.of(context).shareContent; if (shareContent != null) { + final shareFile = shareContent.tryGet('file'); if (shareContent.tryGet('msgtype') == - 'chat.fluffy.shared_file') { + 'chat.fluffy.shared_file' && + shareFile != null) { await showDialog( context: context, useRootNavigator: false, builder: (c) => SendFileDialog( - files: shareContent['file'], + files: [shareFile], room: room, ), );