Fix story preview

This commit is contained in:
Ali
2023-10-26 00:41:46 +04:00
parent d26fc5d868
commit 825dba003b
3 changed files with 40 additions and 13 deletions

View File

@@ -54,7 +54,7 @@ public final class ChatMessageWebpageBubbleContentNode: ChatMessageBubbleContent
item.controllerInteraction.openTheme(item.message)
return
} else {
if content.embedUrl == nil && (content.title != nil || content.text != nil) {
if content.embedUrl == nil && (content.title != nil || content.text != nil) && content.story == nil {
var shouldOpenUrl = true
if let file = content.file {
if !file.isVideo, !file.isVideoSticker, !file.isAnimated, !file.isAnimatedSticker, !file.isSticker, !file.isMusic {