Add direct sticker rendering

This commit is contained in:
Ali
2022-06-10 16:26:35 +04:00
parent 33e5dedd74
commit 2a9fe74c51
7 changed files with 353 additions and 25 deletions

View File

@@ -756,7 +756,7 @@ final class ChatMessageInteractiveFileNode: ASDisplayNode {
let statusLayoutInput: ChatMessageDateAndStatusNode.LayoutInput
if let _ = textString {
statusLayoutInput = .trailingContent(contentWidth: textLayout.trailingLineWidth, reactionSettings: reactionSettings)
statusLayoutInput = .trailingContent(contentWidth: textLayout.hasRTL ? 1000.0 : textLayout.trailingLineWidth, reactionSettings: reactionSettings)
} else {
statusLayoutInput = .trailingContent(contentWidth: iconFrame == nil ? 1000.0 : controlAreaWidth, reactionSettings: reactionSettings)
}