mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-29 11:25:38 +00:00
no message
This commit is contained in:
parent
5ff1b00912
commit
d2d70a0dc5
@ -489,6 +489,15 @@ private func findMediaResource(media: Media, resource: MediaResource) -> MediaRe
|
|||||||
if let file = game.file, let result = findMediaResource(media: file, resource: resource) {
|
if let file = game.file, let result = findMediaResource(media: file, resource: resource) {
|
||||||
return result
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user