Make only media downloadable in chatBubble.dart, preventing "null" errors
This commit is contained in:
parent
5dbdd52d4c
commit
290295b26a
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user