no message

This commit is contained in:
Peter Iakovlev
2018-02-23 20:28:31 +04:00
parent 6bffa09f0e
commit d36e7e3a6e
180 changed files with 4220 additions and 1001 deletions

View File

@@ -220,7 +220,7 @@ final class ChatMessageInteractiveMediaNode: ASTransformNode {
boundingSize = CGSize(width: boundingWidth, height: fittedSize.height).cropped(CGSize(width: CGFloat.greatestFiniteMagnitude, height: layoutConstants.image.maxDimensions.height))
boundingSize.height = max(boundingSize.height, layoutConstants.image.minDimensions.height)
boundingSize.width = max(boundingSize.width, layoutConstants.image.minDimensions.width)
drawingSize = nativeSize.aspectFitted(boundingSize)
drawingSize = nativeSize.aspectFittedWithOverflow(boundingSize, leeway: 4.0)
}
case .unconstrained:
boundingSize = constrainedSize