From a305f0a2668003e51a12b03cc082b65b57a48361 Mon Sep 17 00:00:00 2001 From: Bruno Muniz Azevedo Filho <bruno@elixxir.io> Date: Tue, 28 Jun 2022 18:58:57 -0300 Subject: [PATCH] Fix voice message crash outgoing --- Sources/ChatFeature/Helpers/CellConfigurator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ChatFeature/Helpers/CellConfigurator.swift b/Sources/ChatFeature/Helpers/CellConfigurator.swift index 60bc0df7..4f0ad3ca 100644 --- a/Sources/ChatFeature/Helpers/CellConfigurator.swift +++ b/Sources/ChatFeature/Helpers/CellConfigurator.swift @@ -130,7 +130,7 @@ extension CellFactory { }, build: { item, collectionView, indexPath in let ft = transfer(item.fileTransferId!) let cell: OutgoingAudioCell = collectionView.dequeueReusableCell(forIndexPath: indexPath) - let url = FileManager.url(for: ft.name)! + let url = FileManager.url(for: "\(ft.name).\(ft.type)")! var model = AudioMessageCellState( date: item.date, audioURL: url, -- GitLab