mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[WIP] Stories
This commit is contained in:
@@ -224,7 +224,7 @@ public final class AccountStateManager {
|
||||
return self.deletedMessagesPipe.signal()
|
||||
}
|
||||
|
||||
private let storyUpdatesPipe = ValuePipe<[InternalStoryUpdate]>()
|
||||
fileprivate let storyUpdatesPipe = ValuePipe<[InternalStoryUpdate]>()
|
||||
public var storyUpdates: Signal<[InternalStoryUpdate], NoError> {
|
||||
return self.storyUpdatesPipe.signal()
|
||||
}
|
||||
@@ -1639,6 +1639,12 @@ public final class AccountStateManager {
|
||||
}
|
||||
}
|
||||
|
||||
func injectStoryUpdates(updates: [InternalStoryUpdate]) {
|
||||
self.impl.with { impl in
|
||||
impl.storyUpdatesPipe.putNext(updates)
|
||||
}
|
||||
}
|
||||
|
||||
var updateConfigRequested: (() -> Void)?
|
||||
var isPremiumUpdated: (() -> Void)?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user