diff --git a/lib/screen/pages/talk/chatBubble.dart b/lib/screen/pages/talk/chatBubble.dart index 30d564a..e170b11 100644 --- a/lib/screen/pages/talk/chatBubble.dart +++ b/lib/screen/pages/talk/chatBubble.dart @@ -164,7 +164,9 @@ class ChatBubble { }); }, onTap: () { - FileElement.download(message.file!.path!, message.file?.name ?? "Datei", (progress) => { + if(message.file == null) return; + + FileElement.download(message.file!.path!, message.file!.name, (progress) => { downloadProgress = progress, }, (result) => { downloadProgress = 0,