Fix file bubble layout

This commit is contained in:
Ilya Laktyushin
2020-10-07 17:34:55 +04:00
parent 77a7ac8882
commit 23df050f9b
11 changed files with 59 additions and 44 deletions

View File

@@ -531,7 +531,7 @@ final class ChatMessageAttachedContentNode: ASDisplayNode {
var additionalImageBadgeContent: ChatMessageInteractiveMediaBadgeContent?
switch position {
case .linear(_, .None), .linear(_, .Neighbour(true, _)):
case .linear(_, .None), .linear(_, .Neighbour(true, _, _)):
let imageMode = !((refineContentImageLayout == nil && refineContentFileLayout == nil && contentInstantVideoSizeAndApply == nil) || preferMediaBeforeText)
statusInText = !imageMode