Instant View: add webpage preview file in media map

This commit is contained in:
Ilya Laktyushin 2020-08-30 00:02:48 +03:00
parent d8b8793f9c
commit 2de452f166

View File

@ -855,6 +855,9 @@ func instantPageLayoutForWebPage(_ webPage: TelegramMediaWebpage, boundingWidth:
if let image = loadedContent.image, let id = image.id {
media[id] = image
}
if let video = loadedContent.file, let id = video.id {
media[id] = video
}
var mediaIndexCounter: Int = 0
var embedIndexCounter: Int = 0