Fix clearCache method on VoiceMessageAttachmentCacheManager

This commit is contained in:
Nicolas Mauri
2023-01-06 16:14:43 +01:00
parent 0033e0e724
commit 250e3c5a05
@@ -137,7 +137,7 @@ class VoiceMessageAttachmentCacheManager {
durations.removeAll()
finalURLs.removeAll()
if FileManager.default.fileExists(atPath: temporaryFilesFolderURL.absoluteString) {
if FileManager.default.fileExists(atPath: temporaryFilesFolderURL.path) {
do {
try FileManager.default.removeItem(at: temporaryFilesFolderURL)
} catch {