Low power improvements

This commit is contained in:
Ali
2023-02-28 22:20:44 +04:00
parent fb025d5b14
commit a11de52d56
25 changed files with 155 additions and 234 deletions

View File

@@ -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