mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Fixed GIFs not respecting autoplay preference
This commit is contained in:
parent
18b0517ca0
commit
c5cb691f2b
@ -81,13 +81,13 @@ class ChatMessageMediaBubbleContentNode: ChatMessageBubbleContentNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !item.message.containsSecretMedia {
|
if !item.message.containsSecretMedia {
|
||||||
if telegramFile.isAnimated {
|
if telegramFile.isAnimated && item.controllerInteraction.automaticMediaDownloadSettings.autoplayGifs {
|
||||||
if case .full = automaticDownload {
|
if case .full = automaticDownload {
|
||||||
automaticPlayback = item.controllerInteraction.automaticMediaDownloadSettings.autoplayGifs
|
automaticPlayback = true //item.controllerInteraction.automaticMediaDownloadSettings.autoplayGifs
|
||||||
} else {
|
} else {
|
||||||
automaticPlayback = item.context.account.postbox.mediaBox.completedResourcePath(telegramFile.resource) != nil
|
automaticPlayback = item.context.account.postbox.mediaBox.completedResourcePath(telegramFile.resource) != nil
|
||||||
}
|
}
|
||||||
} else if telegramFile.isVideo && item.controllerInteraction.automaticMediaDownloadSettings.autoplayVideos {
|
} else if (telegramFile.isVideo && !telegramFile.isAnimated) && item.controllerInteraction.automaticMediaDownloadSettings.autoplayVideos {
|
||||||
if case .full = automaticDownload {
|
if case .full = automaticDownload {
|
||||||
automaticPlayback = true
|
automaticPlayback = true
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user