Change App badge handling

Replace the missed notications count with the missed discussions count.
This commit is contained in:
giomfo
2016-05-30 10:24:43 +02:00
parent f170a7a1c6
commit 982aa45362
+1 -1
View File
@@ -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;