Change to only send the unread counts init notification once during program load. Issue #1772
This commit is contained in:
parent
336c980243
commit
2017a2138f
@ -1290,9 +1290,12 @@ private extension Account {
|
|||||||
|
|
||||||
self.fetchingAllUnreadCounts = false
|
self.fetchingAllUnreadCounts = false
|
||||||
self.updateUnreadCount()
|
self.updateUnreadCount()
|
||||||
|
|
||||||
|
if !self.isUnreadCountsInitialized {
|
||||||
self.isUnreadCountsInitialized = true
|
self.isUnreadCountsInitialized = true
|
||||||
self.postUnreadCountDidInitializeNotification()
|
self.postUnreadCountDidInitializeNotification()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
operationQueue.addOperation(operation)
|
operationQueue.addOperation(operation)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user