This commit is contained in:
Ali
2021-09-03 00:45:22 +04:00
parent 8aefa19d31
commit 1fe0d4a75b
53 changed files with 489 additions and 566 deletions

View File

@@ -195,7 +195,7 @@ final class PeerNotificationSettingsTable: Table {
self.updatedInitialSettings.removeAll()
}
func transactionParticipationInTotalUnreadCountUpdates(postbox: Postbox) -> (added: Set<PeerId>, removed: Set<PeerId>) {
func transactionParticipationInTotalUnreadCountUpdates(postbox: Postbox, transaction: Transaction) -> (added: Set<PeerId>, removed: Set<PeerId>) {
var added = Set<PeerId>()
var removed = Set<PeerId>()
@@ -210,7 +210,7 @@ final class PeerNotificationSettingsTable: Table {
if let current = globalNotificationSettings {
globalNotificationSettingsValue = current
} else {
globalNotificationSettingsValue = postbox.getGlobalNotificationSettings()
globalNotificationSettingsValue = postbox.getGlobalNotificationSettings(transaction: transaction)
globalNotificationSettings = globalNotificationSettingsValue
}