Build on xcode 12

This commit is contained in:
David Langley
2021-09-22 13:53:26 +01:00
parent 928e4e1cc3
commit 80f407857f
4 changed files with 13 additions and 13 deletions
@@ -112,9 +112,11 @@ class VoiceMessagePlaybackController: VoiceMessageAudioPlayerDelegate, VoiceMess
audioPlayer.loadContentFromURL(url, displayName: attachment?.originalFileName)
}
audioPlayer.seekToTime(self.duration * progress) { [weak self] _ in
audioPlayer.seekToTime(self.duration * Double(progress)) { [weak self] _ in
guard let self = self else { return }
self.state = .paused
if self.state == .stopped {
self.state = .paused
}
self.updateUI()
}
}