mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-18 11:30:04 +00:00
33 lines
1003 B
Swift
33 lines
1003 B
Swift
import Foundation
|
|
|
|
/*final class MutableGroupFeedReadStateSyncOperationsView: MutablePostboxView {
|
|
var entries: [PeerGroupId: GroupFeedReadStateSyncOperation] = [:]
|
|
|
|
init(postbox: Postbox) {
|
|
self.entries = postbox.groupFeedReadStateTable.getSyncOperations()
|
|
}
|
|
|
|
func replay(postbox: Postbox, transaction: PostboxTransaction) -> Bool {
|
|
var updated = false
|
|
if !transaction.currentGroupFeedReadStateContext.updatedOperations.isEmpty {
|
|
self.entries = postbox.groupFeedReadStateTable.getSyncOperations()
|
|
updated = true
|
|
}
|
|
return updated
|
|
}
|
|
|
|
func immutableView() -> PostboxView {
|
|
return GroupFeedReadStateSyncOperationsView(self)
|
|
}
|
|
}
|
|
|
|
public final class GroupFeedReadStateSyncOperationsView: PostboxView {
|
|
public var entries: [PeerGroupId: GroupFeedReadStateSyncOperation] = [:]
|
|
|
|
init(_ view: MutableGroupFeedReadStateSyncOperationsView) {
|
|
self.entries = view.entries
|
|
}
|
|
}
|
|
|
|
*/
|