mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Instant View: add webpage preview file in media map
This commit is contained in:
parent
d8b8793f9c
commit
2de452f166
@ -855,6 +855,9 @@ func instantPageLayoutForWebPage(_ webPage: TelegramMediaWebpage, boundingWidth:
|
|||||||
if let image = loadedContent.image, let id = image.id {
|
if let image = loadedContent.image, let id = image.id {
|
||||||
media[id] = image
|
media[id] = image
|
||||||
}
|
}
|
||||||
|
if let video = loadedContent.file, let id = video.id {
|
||||||
|
media[id] = video
|
||||||
|
}
|
||||||
|
|
||||||
var mediaIndexCounter: Int = 0
|
var mediaIndexCounter: Int = 0
|
||||||
var embedIndexCounter: Int = 0
|
var embedIndexCounter: Int = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user