mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Stories
This commit is contained in:
@@ -2093,6 +2093,8 @@ public final class ChatHistoryListNode: ListView, ChatHistoryNode {
|
||||
if message.stableId != ChatHistoryListNode.fixedAdMessageStableId {
|
||||
visibleAdOpaqueIds.append(attribute.opaqueId)
|
||||
}
|
||||
} else if let _ = attribute as? ReplyStoryAttribute {
|
||||
storiesRequiredValidation = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2132,14 +2134,10 @@ public final class ChatHistoryListNode: ListView, ChatHistoryNode {
|
||||
if invoice.version != TelegramMediaInvoice.lastVersion {
|
||||
contentRequiredValidation = true
|
||||
}
|
||||
} else if let story = media as? TelegramMediaStory {
|
||||
if message.associatedStories[story.storyId] == nil {
|
||||
storiesRequiredValidation = true
|
||||
}
|
||||
} else if let webpage = media as? TelegramMediaWebpage, case let .Loaded(content) = webpage.content, let story = content.story {
|
||||
if message.associatedStories[story.storyId] == nil {
|
||||
storiesRequiredValidation = true
|
||||
}
|
||||
} else if let _ = media as? TelegramMediaStory {
|
||||
storiesRequiredValidation = true
|
||||
} else if let webpage = media as? TelegramMediaWebpage, case let .Loaded(content) = webpage.content, let _ = content.story {
|
||||
storiesRequiredValidation = true
|
||||
}
|
||||
}
|
||||
if contentRequiredValidation {
|
||||
|
||||
Reference in New Issue
Block a user