This commit is contained in:
Mike Renoir
2023-05-19 18:37:55 +04:00
parent 2749d3a2fe
commit f53a445858

View File

@@ -395,6 +395,8 @@ public final class StoryListContext {
var itemSets = self.stateValue.itemSets
if let index = itemSets.firstIndex(where: { $0.peerId == id }) {
itemSets[index] = itemSet
} else {
itemSets.append(itemSet)
}
self.stateValue.itemSets = itemSets
}))
@@ -621,4 +623,10 @@ public final class StoryListContext {
impl.upload(media: media, text: text, entities: entities, privacy: privacy)
}
}
public func loadPeer(id: EnginePeer.Id) {
self.impl.with { impl in
impl.loadPeer(id: id)
}
}
}