File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
ios/RNNeteaseIm/RNNeteaseIm Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -327,18 +327,19 @@ -(void)adduserId:(NSString *)userId andVerifyType:(NSString *)strType andMag:(NS
327327 [[NIMSDK sharedSDK ].userManager requestFriend: request completion: ^(NSError *error) {
328328 if (!error) {
329329 success (successText);
330- [weakSelf sendCustomNotificationContent: msg andSessionID: userId andApnsContent: apnsContent AndData: dataDict];
330+ [weakSelf sendCustomNotificationContent: msg andSessionID: userId andApnsContent: apnsContent AndData: dataDict shouldBeCounted: NO ];
331331 // [self refresh];
332332 }else {
333333 err (failedText);
334334 }
335335 }];
336336}
337337// 发送自定义通知
338- - (void )sendCustomNotificationContent : (NSString *)content andSessionID : (NSString *)sessionID andApnsContent : (NSString *)strApns AndData : (NSDictionary *)dict {
338+ - (void )sendCustomNotificationContent : (NSString *)content andSessionID : (NSString *)sessionID andApnsContent : (NSString *)strApns AndData : (NSDictionary *)dict shouldBeCounted : ( BOOL ) isCounted {
339339 NIMSession *session = [NIMSession session: sessionID type: NIMSessionTypeP2P];
340340 NIMCustomSystemNotification *notifi = [[NIMCustomSystemNotification alloc ]initWithContent:content];
341341 NIMCustomSystemNotificationSetting *setting = [[NIMCustomSystemNotificationSetting alloc ]init];
342+ setting.shouldBeCounted = isCounted;
342343 setting.apnsEnabled = YES ;
343344 notifi.apnsContent = strApns;
344345 notifi.apnsPayload = dict;
You can’t perform that action at this time.
0 commit comments