Merge pull request #406 from RyanRory/voice-message-durations
Fix Inconsistent Voice Message Durations
This commit is contained in:
commit
08b2542dbf
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue