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:
@@ -398,6 +398,8 @@ public final class ChatMessageAttachedContentNode: ASDisplayNode {
|
||||
} else {
|
||||
let contentMode: InteractiveMediaNodeContentMode = contentMediaAspectFilled ? .aspectFill : .aspectFit
|
||||
|
||||
let automaticDownload = shouldDownloadMediaAutomatically(settings: automaticDownloadSettings, peerType: associatedData.automaticDownloadPeerType, networkType: associatedData.automaticDownloadNetworkType, authorPeerId: message.author?.id, contactsPeerIds: associatedData.contactsPeerIds, media: contentMediaValue)
|
||||
|
||||
let (_, initialImageWidth, refineLayout) = makeContentMedia(
|
||||
context,
|
||||
presentationData,
|
||||
@@ -406,7 +408,7 @@ public final class ChatMessageAttachedContentNode: ASDisplayNode {
|
||||
attributes,
|
||||
contentMediaValue,
|
||||
nil,
|
||||
.full,
|
||||
automaticDownload ? .full : .none,
|
||||
associatedData.automaticDownloadPeerType,
|
||||
associatedData.automaticDownloadPeerId,
|
||||
.constrained(CGSize(width: constrainedSize.width - insets.left - insets.right, height: constrainedSize.height)),
|
||||
|
||||
Reference in New Issue
Block a user