Move to double duration

This commit is contained in:
Ali
2023-06-06 12:07:32 +04:00
parent fab4e28e8c
commit 893402dc95
27 changed files with 72 additions and 65 deletions

View File

@@ -2272,7 +2272,7 @@ private class MessageContentNode: ASDisplayNode, ContentNode {
mediaSize = dimensions.aspectFitted(mediaFitSize)
mediaFrame = CGRect(origin: CGPoint(x: 3.0, y: 63.0), size: mediaSize)
mediaDuration = video.duration ?? 0
mediaDuration = video.duration.flatMap(Int32.init) ?? 0
if !wasInitialized {
if self.isStatic {