Эх сурвалжийг харах

log warning if loading the audio file fails

cyberta 4 жил өмнө
parent
commit
8e628d2cf0

+ 2 - 0
deltachat-ios/Chat/AudioController.swift

@@ -106,6 +106,8 @@ open class AudioController: NSObject, AVAudioPlayerDelegate, AudioMessageCellDel
                     DispatchQueue.main.async {
                         successHandler(messageId, Double(durationInSeconds))
                     }
+                case .failed:
+                    logger.warning("loading audio message \(messageId) failed: \(String(describing: error?.localizedDescription))")
                 default: break
                 }
             }