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 MutableItemCollectionInfoView: MutablePostboxView {
|
||||
let id: ItemCollectionId
|
||||
var info: ItemCollectionInfo?
|
||||
|
||||
init(postbox: Postbox, id: ItemCollectionId) {
|
||||
init(postbox: PostboxImpl, id: ItemCollectionId) {
|
||||
self.id = id
|
||||
let infos = postbox.itemCollectionInfoTable.getInfos(namespace: id.namespace)
|
||||
for (_, infoId, info) in infos {
|
||||
@@ -15,7 +15,7 @@ final class MutableItemCollectionInfoView: MutablePostboxView {
|
||||
}
|
||||
}
|
||||
|
||||
func replay(postbox: Postbox, transaction: PostboxTransaction) -> Bool {
|
||||
func replay(postbox: PostboxImpl, transaction: PostboxTransaction) -> Bool {
|
||||
if transaction.currentItemCollectionInfosOperations.isEmpty {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user