mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
[WIP] Stories
This commit is contained in:
@@ -666,6 +666,18 @@ final class MutableMessageHistoryView {
|
||||
hasChanges = true
|
||||
}
|
||||
}
|
||||
if !transaction.storyEvents.isEmpty {
|
||||
var updatedStories = Set<StoryId>()
|
||||
for event in transaction.storyEvents {
|
||||
switch event {
|
||||
case let .updated(id):
|
||||
updatedStories.insert(id)
|
||||
}
|
||||
}
|
||||
if loadedState.updateStories(postbox: postbox, updatedStories: updatedStories) {
|
||||
hasChanges = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if hasChanges {
|
||||
|
||||
Reference in New Issue
Block a user