Merge pull request #406 from RyanRory/voice-message-durations

Fix Inconsistent Voice Message Durations
pull/408/head
Niels Andriesse 4 years ago committed by GitHub
commit 08b2542dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -523,6 +523,7 @@ typedef void (^OWSLoadedThumbnailSuccess)(OWSLoadedThumbnail *loadedThumbnail);
// Ignore "invalid audio file" errors. // Ignore "invalid audio file" errors.
return 0.f; return 0.f;
} }
[audioPlayer prepareToPlay];
if (!error) { if (!error) {
return (CGFloat)[audioPlayer duration]; return (CGFloat)[audioPlayer duration];
} else { } else {

Loading…
Cancel
Save