mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various improvements
This commit is contained in:
@@ -318,6 +318,12 @@ public final class ChatMessageAttachedContentNode: ASDisplayNode {
|
||||
flags.remove(.preferMediaInline)
|
||||
mediaAndFlags = (mediaAndFlagsValue.0, flags)
|
||||
}
|
||||
if let adAttribute = message.adAttribute, adAttribute.hasContentMedia {
|
||||
var flags = mediaAndFlagsValue.1
|
||||
flags.remove(.preferMediaInline)
|
||||
flags.insert(.preferMediaBeforeText)
|
||||
mediaAndFlags = (mediaAndFlagsValue.0, flags)
|
||||
}
|
||||
}
|
||||
|
||||
var contentMediaAspectFilled = false
|
||||
|
||||
Reference in New Issue
Block a user