mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Story improvements
This commit is contained in:
@@ -2574,18 +2574,26 @@ final class MessageHistoryTable: Table {
|
||||
}
|
||||
}
|
||||
|
||||
var associatedStories: [StoryId: CodableEntry] = [:]
|
||||
|
||||
for media in parsedMedia {
|
||||
for peerId in media.peerIds {
|
||||
if let peer = peerTable.get(peerId) {
|
||||
peers[peer.id] = peer
|
||||
}
|
||||
}
|
||||
for storyId in media.storyIds {
|
||||
if associatedStories[storyId] == nil {
|
||||
if let story = storyTable.get(id: storyId) {
|
||||
associatedStories[storyId] = story
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var associatedMessageIds: [MessageId] = []
|
||||
var associatedMessages = SimpleDictionary<MessageId, Message>()
|
||||
var associatedMedia: [MediaId: Media] = [:]
|
||||
var associatedStories: [StoryId: CodableEntry] = [:]
|
||||
|
||||
for attribute in parsedAttributes {
|
||||
for peerId in attribute.associatedPeerIds {
|
||||
|
||||
Reference in New Issue
Block a user