mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
Story preview button
This commit is contained in:
parent
2a9b47f029
commit
91be8715b4
@ -217,7 +217,7 @@ final class ChatMessageWebpageBubbleContentNode: ChatMessageBubbleContentNode {
|
|||||||
mediaAndFlags = (image, flags)
|
mediaAndFlags = (image, flags)
|
||||||
}
|
}
|
||||||
} else if let story = mainMedia as? TelegramMediaStory {
|
} else if let story = mainMedia as? TelegramMediaStory {
|
||||||
mediaAndFlags = (story, [])
|
mediaAndFlags = (story, [.preferMediaBeforeText])
|
||||||
} else if let type = webpage.type {
|
} else if let type = webpage.type {
|
||||||
if type == "telegram_background" {
|
if type == "telegram_background" {
|
||||||
var colors: [UInt32] = []
|
var colors: [UInt32] = []
|
||||||
@ -325,6 +325,8 @@ final class ChatMessageWebpageBubbleContentNode: ChatMessageBubbleContentNode {
|
|||||||
actionTitle = item.presentationData.strings.Conversation_OpenBotApp
|
actionTitle = item.presentationData.strings.Conversation_OpenBotApp
|
||||||
case "telegram_chatlist":
|
case "telegram_chatlist":
|
||||||
actionTitle = item.presentationData.strings.Conversation_OpenChatFolder
|
actionTitle = item.presentationData.strings.Conversation_OpenChatFolder
|
||||||
|
case "telegram_story":
|
||||||
|
actionTitle = "Open Story"
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user