#4094 - Fixed attachments caching layer not working accordingly.

This commit is contained in:
Stefan Ceriu
2021-07-12 15:50:44 +03:00
parent e276842944
commit 4066822c29
@@ -126,6 +126,7 @@ class VoiceMessageAttachmentCacheManager {
switch result {
case .success:
if let duration = try? result.get() {
self.durations[identifier] = duration
sampleFileAtURL(newURL, duration: duration)
} else {
MXLog.error("[VoiceMessageAttachmentCacheManager] enqueueLoadAttachment: Failed to retrieve media duration")