fix inconsistent voice message durations
This commit is contained in:
parent
9c5ceecc85
commit
539b13d189
|
@ -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