From 2017a2138f318c0c2dfeeebbf422a645b1e77a2c Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 3 Feb 2020 10:28:34 -0800 Subject: [PATCH] Change to only send the unread counts init notification once during program load. Issue #1772 --- Frameworks/Account/Account.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Frameworks/Account/Account.swift b/Frameworks/Account/Account.swift index de98b328c..87ded4d0f 100644 --- a/Frameworks/Account/Account.swift +++ b/Frameworks/Account/Account.swift @@ -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)