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

Fix Inconsistent Voice Message Durations
This commit is contained in:
Niels Andriesse 2021-05-07 15:30:38 +10:00 committed by GitHub
commit 08b2542dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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