From d2d70a0dc5ca6cf2650b56324fa4bf8873edbdb6 Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 11 Sep 2018 00:44:04 +0300 Subject: [PATCH] no message --- TelegramCore/FetchedMediaResource.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/TelegramCore/FetchedMediaResource.swift b/TelegramCore/FetchedMediaResource.swift index 5a1757dd3b..548d1c73b3 100644 --- a/TelegramCore/FetchedMediaResource.swift +++ b/TelegramCore/FetchedMediaResource.swift @@ -489,6 +489,15 @@ private func findMediaResource(media: Media, resource: MediaResource) -> MediaRe if let file = game.file, let result = findMediaResource(media: file, resource: resource) { return result } + } else if let action = media as? TelegramMediaAction { + switch action.action { + case let .photoUpdated(image): + if let image = image, let result = findMediaResource(media: image, resource: resource) { + return result + } + default: + break + } } return nil }