mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Open videos from previews
This commit is contained in:
parent
06a647c473
commit
93b1e7acea
@ -57,7 +57,9 @@ public final class ChatMessageWebpageBubbleContentNode: ChatMessageBubbleContent
|
|||||||
if content.embedUrl == nil && (content.title != nil || content.text != nil) && content.story == nil {
|
if content.embedUrl == nil && (content.title != nil || content.text != nil) && content.story == nil {
|
||||||
var shouldOpenUrl = true
|
var shouldOpenUrl = true
|
||||||
if let file = content.file {
|
if let file = content.file {
|
||||||
if !file.isVideo, !file.isVideoSticker, !file.isAnimated, !file.isAnimatedSticker, !file.isSticker, !file.isMusic {
|
if file.isVideo {
|
||||||
|
shouldOpenUrl = false
|
||||||
|
} else if !file.isVideoSticker, !file.isAnimated, !file.isAnimatedSticker, !file.isSticker, !file.isMusic {
|
||||||
shouldOpenUrl = false
|
shouldOpenUrl = false
|
||||||
} else if file.isMusic || file.isVoice {
|
} else if file.isMusic || file.isVoice {
|
||||||
shouldOpenUrl = false
|
shouldOpenUrl = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user