Inline video playback fixes

This commit is contained in:
Ilya Laktyushin
2019-02-15 14:12:36 +04:00
parent 25563418d3
commit 518653f549
17 changed files with 219 additions and 85 deletions

View File

@@ -443,7 +443,7 @@ class ChatMessageBubbleItemNode: ChatMessageItemView {
tmpWidth -= 38.0
}
} else {
tmpWidth = isInlinePlayableVideo ? min(570.0, baseWidth - 36.0) : layoutConstants.bubble.maximumWidthFill.widthFor(baseWidth)
tmpWidth = layoutConstants.bubble.maximumWidthFill.widthFor(baseWidth)
if needShareButton && tmpWidth + 32.0 > baseWidth {
tmpWidth = baseWidth - 32.0
}