mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Isolate postbox
This commit is contained in:
@@ -4,7 +4,7 @@ final class MutablePreferencesView: MutablePostboxView {
|
||||
fileprivate let keys: Set<ValueBoxKey>
|
||||
fileprivate var values: [ValueBoxKey: PreferencesEntry]
|
||||
|
||||
init(postbox: Postbox, keys: Set<ValueBoxKey>) {
|
||||
init(postbox: PostboxImpl, keys: Set<ValueBoxKey>) {
|
||||
self.keys = keys
|
||||
var values: [ValueBoxKey: PreferencesEntry] = [:]
|
||||
for key in keys {
|
||||
@@ -15,7 +15,7 @@ final class MutablePreferencesView: MutablePostboxView {
|
||||
self.values = values
|
||||
}
|
||||
|
||||
func replay(postbox: Postbox, transaction: PostboxTransaction) -> Bool {
|
||||
func replay(postbox: PostboxImpl, transaction: PostboxTransaction) -> Bool {
|
||||
var updated = false
|
||||
for operation in transaction.currentPreferencesOperations {
|
||||
switch operation {
|
||||
|
||||
Reference in New Issue
Block a user