mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
stories
This commit is contained in:
@@ -395,6 +395,8 @@ public final class StoryListContext {
|
|||||||
var itemSets = self.stateValue.itemSets
|
var itemSets = self.stateValue.itemSets
|
||||||
if let index = itemSets.firstIndex(where: { $0.peerId == id }) {
|
if let index = itemSets.firstIndex(where: { $0.peerId == id }) {
|
||||||
itemSets[index] = itemSet
|
itemSets[index] = itemSet
|
||||||
|
} else {
|
||||||
|
itemSets.append(itemSet)
|
||||||
}
|
}
|
||||||
self.stateValue.itemSets = itemSets
|
self.stateValue.itemSets = itemSets
|
||||||
}))
|
}))
|
||||||
@@ -621,4 +623,10 @@ public final class StoryListContext {
|
|||||||
impl.upload(media: media, text: text, entities: entities, privacy: privacy)
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user