mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Isolate postbox
This commit is contained in:
@@ -4,12 +4,12 @@ final class MutableCachedPeerDataView: MutablePostboxView {
|
||||
let peerId: PeerId
|
||||
var cachedPeerData: CachedPeerData?
|
||||
|
||||
init(postbox: Postbox, peerId: PeerId) {
|
||||
init(postbox: PostboxImpl, peerId: PeerId) {
|
||||
self.peerId = peerId
|
||||
self.cachedPeerData = postbox.cachedPeerDataTable.get(peerId)
|
||||
}
|
||||
|
||||
func replay(postbox: Postbox, transaction: PostboxTransaction) -> Bool {
|
||||
func replay(postbox: PostboxImpl, transaction: PostboxTransaction) -> Bool {
|
||||
if let cachedPeerData = transaction.currentUpdatedCachedPeerData[self.peerId] {
|
||||
self.cachedPeerData = cachedPeerData
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user