[WIP] Stories

This commit is contained in:
Ali
2023-06-13 14:18:16 +03:00
parent 7150af3fe1
commit ceda80c3a5
29 changed files with 913 additions and 195 deletions

View File

@@ -2136,6 +2136,10 @@ public final class ChatHistoryListNode: ListView, ChatHistoryNode {
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
}
}
}
if contentRequiredValidation {