mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Isolate postbox
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
final class MutablePendingPeerNotificationSettingsView: MutablePostboxView {
|
||||
var entries: [PeerId: PeerNotificationSettings] = [:]
|
||||
|
||||
init(postbox: Postbox) {
|
||||
init(postbox: PostboxImpl) {
|
||||
for peerId in postbox.pendingPeerNotificationSettingsIndexTable.getAll() {
|
||||
if let value = postbox.peerNotificationSettingsTable.getPending(peerId) {
|
||||
self.entries[peerId] = value
|
||||
@@ -12,7 +12,7 @@ final class MutablePendingPeerNotificationSettingsView: MutablePostboxView {
|
||||
}
|
||||
}
|
||||
|
||||
func replay(postbox: Postbox, transaction: PostboxTransaction) -> Bool {
|
||||
func replay(postbox: PostboxImpl, transaction: PostboxTransaction) -> Bool {
|
||||
var updated = false
|
||||
for peerId in transaction.currentUpdatedPendingPeerNotificationSettings {
|
||||
if let value = postbox.peerNotificationSettingsTable.getPending(peerId) {
|
||||
|
||||
Reference in New Issue
Block a user