 		didSet {
 			if unreadCount != oldValue {
 				postUnreadCountDidChangeNotification()
+				UIApplication.shared.applicationIconBadgeNumber = unreadCount
 			}
 		}
 	}


		DispatchQueue.main.async {
			self.unreadCount = AccountManager.shared.unreadCount
		}
		
		return true

import UIKit
import RSCore
import Account
import UserNotifications

var appDelegate: AppDelegate!

