mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Update notification service
This commit is contained in:
@@ -10,10 +10,10 @@ final class ContactTable: Table {
|
||||
private var peerIdsBeforeModification: Set<PeerId>?
|
||||
private var peerIds: Set<PeerId>?
|
||||
|
||||
init(valueBox: ValueBox, table: ValueBoxTable, peerNameIndexTable: PeerNameIndexTable) {
|
||||
init(valueBox: ValueBox, table: ValueBoxTable, useCaches: Bool, peerNameIndexTable: PeerNameIndexTable) {
|
||||
self.peerNameIndexTable = peerNameIndexTable
|
||||
|
||||
super.init(valueBox: valueBox, table: table)
|
||||
super.init(valueBox: valueBox, table: table, useCaches: useCaches)
|
||||
}
|
||||
|
||||
private func key(_ id: PeerId, sharedKey: ValueBoxKey = ValueBoxKey(length: 8)) -> ValueBoxKey {
|
||||
@@ -98,5 +98,9 @@ final class ContactTable: Table {
|
||||
|
||||
self.peerIdsBeforeModification = nil
|
||||
}
|
||||
|
||||
if !self.useCaches {
|
||||
self.peerIds = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user