mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fix link preview layout
This commit is contained in:
@@ -526,11 +526,18 @@ final class ChatMessageAttachedContentNode: ASDisplayNode {
|
||||
}
|
||||
}
|
||||
|
||||
if preferMediaBeforeText {
|
||||
if preferMediaBeforeText, let textString, textString.length != 0 {
|
||||
isImage = false
|
||||
}
|
||||
|
||||
let statusInText = !isImage
|
||||
var statusInText = !isImage
|
||||
if let textString {
|
||||
if textString.length == 0 {
|
||||
statusInText = false
|
||||
}
|
||||
} else {
|
||||
statusInText = false
|
||||
}
|
||||
|
||||
switch preparePosition {
|
||||
case .linear(_, .None), .linear(_, .Neighbour(true, _, _)):
|
||||
|
||||
Reference in New Issue
Block a user