From 982aa45362f55684fef20c144b9c430e6c50832f Mon Sep 17 00:00:00 2001 From: giomfo Date: Mon, 30 May 2016 10:24:43 +0200 Subject: [PATCH] Change App badge handling Replace the missed notications count with the missed discussions count. --- Vector/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vector/AppDelegate.m b/Vector/AppDelegate.m index c0aa1a6e0..a2ae51c8a 100644 --- a/Vector/AppDelegate.m +++ b/Vector/AppDelegate.m @@ -764,7 +764,7 @@ NSString *const kAppDelegateDidTapStatusBarNotification = @"kAppDelegateDidTapSt - (void)refreshApplicationIconBadgeNumber { - NSUInteger count = [MXKRoomDataSourceManager notificationCount]; + NSUInteger count = [MXKRoomDataSourceManager missedDiscussionsCount]; NSLog(@"[AppDelegate] refreshApplicationIconBadgeNumber: %tu", count); [UIApplication sharedApplication].applicationIconBadgeNumber = count;