mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-06 22:33:10 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
commit
dc7daf9431
@ -647,6 +647,12 @@ final class ChatMessageAttachedContentNode: ASDisplayNode {
|
|||||||
|
|
||||||
var statusSuggestedWidthAndContinue: (CGFloat, (CGFloat) -> (CGSize, (ListViewItemUpdateAnimation) -> Void))?
|
var statusSuggestedWidthAndContinue: (CGFloat, (CGFloat) -> (CGSize, (ListViewItemUpdateAnimation) -> Void))?
|
||||||
if statusInText, let textStatusType = textStatusType {
|
if statusInText, let textStatusType = textStatusType {
|
||||||
|
let trailingContentWidth: CGFloat
|
||||||
|
if textLayout.hasRTL {
|
||||||
|
trailingContentWidth = 10000.0
|
||||||
|
} else {
|
||||||
|
trailingContentWidth = textLayout.trailingLineWidth
|
||||||
|
}
|
||||||
statusSuggestedWidthAndContinue = statusLayout(ChatMessageDateAndStatusNode.Arguments(
|
statusSuggestedWidthAndContinue = statusLayout(ChatMessageDateAndStatusNode.Arguments(
|
||||||
context: context,
|
context: context,
|
||||||
presentationData: presentationData,
|
presentationData: presentationData,
|
||||||
@ -654,7 +660,7 @@ final class ChatMessageAttachedContentNode: ASDisplayNode {
|
|||||||
impressionCount: viewCount,
|
impressionCount: viewCount,
|
||||||
dateText: dateText,
|
dateText: dateText,
|
||||||
type: textStatusType,
|
type: textStatusType,
|
||||||
layoutInput: .trailingContent(contentWidth: textLayout.trailingLineWidth, reactionSettings: shouldDisplayInlineDateReactions(message: message) ? ChatMessageDateAndStatusNode.TrailingReactionSettings(displayInline: true, preferAdditionalInset: false) : nil),
|
layoutInput: .trailingContent(contentWidth: trailingContentWidth, reactionSettings: shouldDisplayInlineDateReactions(message: message) ? ChatMessageDateAndStatusNode.TrailingReactionSettings(displayInline: true, preferAdditionalInset: false) : nil),
|
||||||
constrainedSize: textConstrainedSize,
|
constrainedSize: textConstrainedSize,
|
||||||
availableReactions: associatedData.availableReactions,
|
availableReactions: associatedData.availableReactions,
|
||||||
reactions: dateReactionsAndPeers.reactions,
|
reactions: dateReactionsAndPeers.reactions,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user