From d1e2c3fe6d71e26dcb8a4d677c7073d994bb6032 Mon Sep 17 00:00:00 2001 From: Gleidson Daniel Silva Date: Fri, 23 Sep 2022 17:21:11 -0300 Subject: [PATCH] [FIX] Fix filenames and servers url when downloading audio files (#4553) --- app/containers/message/Attachments.tsx | 14 +++++++++++--- app/containers/message/Audio.tsx | 5 +++-- app/containers/message/Reply.tsx | 4 +++- app/containers/message/interfaces.ts | 1 + app/lib/methods/audioFile.ts | 18 ++++++++++++++---- 5 files changed, 32 insertions(+), 10 deletions(-) diff --git a/app/containers/message/Attachments.tsx b/app/containers/message/Attachments.tsx index ddbed86f0..a581f194e 100644 --- a/app/containers/message/Attachments.tsx +++ b/app/containers/message/Attachments.tsx @@ -57,7 +57,7 @@ const AttachedActions = ({ attachment }: { attachment: IAttachment }) => { }; const Attachments: React.FC = React.memo( - ({ attachments, timeFormat, showAttachment, style, getCustomEmoji, isReply }: IMessageAttachments) => { + ({ attachments, timeFormat, showAttachment, style, getCustomEmoji, isReply, id }: IMessageAttachments) => { const { theme } = useTheme(); if (!attachments || attachments.length === 0) { @@ -80,7 +80,15 @@ const Attachments: React.FC = React.memo( if (file && file.audio_url) { return ( -