File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
ios/RNNeteaseIm/RNNeteaseIm Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ -(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 shouldBeCounted: NO ];
330+ [weakSelf sendCustomNotificationContent: msg andSessionID: userId andApnsContent: apnsContent AndData: dataDict shouldBeCounted: YES ];
331331 // [self refresh];
332332 }else {
333333 err (failedText);
Original file line number Diff line number Diff line change @@ -433,12 +433,8 @@ - (NSString *)notificationMessageContent:(NIMMessage *)lastMessage{
433433 return @" [视频聊天]" ;
434434 }
435435 if (object.notificationType == NIMNotificationTypeTeam) {
436- NIMTeam *team = [[NIMSDK sharedSDK ].teamManager teamById: lastMessage.session.sessionId];
437- if (team.type == NIMTeamTypeNormal) {
438- return @" [讨论组信息更新]" ;
439- }else {
440- return @" [群信息更新]" ;
441- }
436+ NSString *strContent = [NIMKitUtil teamNotificationFormatedMessage: lastMessage];
437+ return strContent;
442438 }
443439 return @" [未知消息]" ;
444440}
Original file line number Diff line number Diff line change 2424
2525+ (BOOL )canInviteMember : (NIMTeamMember *)member ;
2626
27+ + (NSString *)teamNotificationFormatedMessage : (NIMMessage *)message ;
28+
2729@end
You can’t perform that action at this time.
0 commit comments