Change to only send the unread counts init notification once during program load. Issue #1772

This commit is contained in:
Maurice Parker 2020-02-03 10:28:34 -08:00
parent 336c980243
commit 2017a2138f
1 changed files with 5 additions and 2 deletions

View File

@ -1290,8 +1290,11 @@ private extension Account {
self.fetchingAllUnreadCounts = false
self.updateUnreadCount()
self.isUnreadCountsInitialized = true
self.postUnreadCountDidInitializeNotification()
if !self.isUnreadCountsInitialized {
self.isUnreadCountsInitialized = true
self.postUnreadCountDidInitializeNotification()
}
}
operationQueue.addOperation(operation)