Skip to content

Commit 59ece26

Browse files
guangyaoguangyao
authored andcommitted
fix
1 parent 9d45df8 commit 59ece26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ios/RNNeteaseIm/RNNeteaseIm/ContactViewController.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)