mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Update app icon badge number on each received push notification
This commit is contained in:
parent
88e9ebddb2
commit
7db33e6a47
1 changed files with 5 additions and 0 deletions
|
@ -43,6 +43,8 @@
|
|||
|
||||
#import "CallViewController.h"
|
||||
|
||||
#import "MXSession+Riot.h"
|
||||
|
||||
//#define MX_CALL_STACK_OPENWEBRTC
|
||||
#ifdef MX_CALL_STACK_OPENWEBRTC
|
||||
#import <MatrixOpenWebRTCWrapper/MatrixOpenWebRTCWrapper.h>
|
||||
|
@ -1052,6 +1054,9 @@ NSString *const kAppDelegateNetworkStatusDidChangeNotification = @"kAppDelegateN
|
|||
[[UIApplication sharedApplication] scheduleLocalNotification:eventNotification];
|
||||
}
|
||||
|
||||
// Update icon badge number
|
||||
[UIApplication sharedApplication].applicationIconBadgeNumber = [session riot_missedDiscussionsCount];
|
||||
|
||||
dispatch_block_t completionBlock = [weakSelf createPushNotificationHandlingStateCleaningBlock];
|
||||
weakSelf.pushNotificationHandlingCompletionBlock = completionBlock;
|
||||
|
||||
|
|
Loading…
Reference in a new issue