mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
23 lines
446 B
Swift
23 lines
446 B
Swift
import Foundation
|
|
|
|
final class MutablePostboxStateView {
|
|
var state: PostboxCoding?
|
|
|
|
init(state: PostboxCoding?) {
|
|
self.state = state
|
|
}
|
|
|
|
func replay(updatedState: PostboxCoding) -> Bool {
|
|
self.state = updatedState
|
|
return true
|
|
}
|
|
}
|
|
|
|
public final class PostboxStateView {
|
|
public let state: PostboxCoding?
|
|
|
|
init(_ view: MutablePostboxStateView) {
|
|
self.state = view.state
|
|
}
|
|
}
|