VB: Own code review

This commit is contained in:
manuroe
2022-10-20 13:39:27 +02:00
parent abddea7e3e
commit b7f12b0247
8 changed files with 13 additions and 115 deletions
@@ -104,8 +104,6 @@ class VoiceMessageAudioPlayer: NSObject {
// audioPlayerDidFinishPlaying must be called on this last AVPlayerItem
NotificationCenter.default.removeObserver(playToEndObserver as Any)
playToEndObserver = NotificationCenter.default.addObserver(forName: Notification.Name.AVPlayerItemDidPlayToEndTime, object: playerItem, queue: nil) { [weak self] notification in
MXLog.debug("[VoiceBroadcastPlaybackViewModel] audioPlayerDidFinishPlaying ")
guard let self = self else { return }
self.delegateContainer.notifyDelegatesWithBlock { delegate in