mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Low power improvements
This commit is contained in:
@@ -583,8 +583,8 @@ final class ChatMessageAttachedContentNode: ASDisplayNode {
|
||||
automaticDownload = .prefetch
|
||||
}
|
||||
if file.isAnimated {
|
||||
automaticPlayback = automaticDownloadSettings.autoplayGifs
|
||||
} else if file.isVideo && automaticDownloadSettings.autoplayVideos {
|
||||
automaticPlayback = context.sharedContext.energyUsageSettings.autoplayGif
|
||||
} else if file.isVideo && context.sharedContext.energyUsageSettings.autoplayVideo {
|
||||
var willDownloadOrLocal = false
|
||||
if case .full = automaticDownload {
|
||||
willDownloadOrLocal = true
|
||||
|
||||
Reference in New Issue
Block a user