[WIP] Stories

This commit is contained in:
Ali
2023-05-05 21:08:04 +04:00
parent 8ff2da5d00
commit 1ca5546adc
33 changed files with 1761 additions and 674 deletions

View File

@@ -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)?