Fix clearCache method on VoiceMessageAttachmentCacheManager

This commit is contained in:
Nicolas Mauri
2023-01-06 16:14:43 +01:00
parent ad66f0fad2
commit cf28034dad
@@ -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 {