@@ -95,7 +95,8 @@ -(NSMutableArray *)setTimeArr:(NSArray *)messageArr{
9595 NSMutableDictionary *user = [NSMutableDictionary dictionary ];
9696 NIMUser *messageUser = [[NIMSDK sharedSDK ].userManager userInfo: message.from];
9797 [user setObject: [NSString stringWithFormat: @" %@ " ,messageUser.userInfo.avatarUrl] forKey: @" avatar" ];
98- [user setObject: [NSString stringWithFormat: @" %@ " , message.senderName] forKey: @" fromNick" ];
98+ // [user setObject:[NSString stringWithFormat:@"%@", message.senderName] forKey:@"fromNick"];
99+ [user setObject: [NSString stringWithFormat: @" %@ " ,messageUser.userInfo.nickName] forKey: @" name" ];
99100 [user setObject: [NSString stringWithFormat: @" %@ " , message.from] forKey: @" _id" ];
100101 NSArray *key = [user allKeys ];
101102 for (NSString *tem in key) {
@@ -657,7 +658,8 @@ -(void)refrashMessage:(NIMMessage *)message From:(NSString *)from{
657658 NIMUser *user = [[NIMSDK sharedSDK ].userManager userInfo: message.from];
658659 NSMutableDictionary *dources = [NSMutableDictionary dictionary ];
659660 [dources setObject: [NSString stringWithFormat: @" %@ " ,user.userInfo.avatarUrl] forKey: @" avatar" ];
660- [dources setObject: [NSString stringWithFormat: @" %@ " , message.senderName] forKey: @" fromNick" ];
661+ // [dources setObject:[NSString stringWithFormat:@"%@", message.senderName] forKey:@"fromNick"];
662+ [dources setObject: [NSString stringWithFormat: @" %@ " ,user.userInfo.nickName] forKey: @" name" ];
661663 [dources setObject: [NSString stringWithFormat: @" %@ " , message.from] forKey: @" _id" ];
662664 NSArray *key = [dources allKeys ];
663665 for (NSString *tem in key) {
@@ -870,9 +872,7 @@ - (NSDictionary *)dealWithData:(NSDictionary *)dict{
870872 NSString *strOpenName = [self getUserName: strOpenId];
871873 strContent = [NSString stringWithFormat: @" %@ 领取了你的红包%@ " ,strOpenName,lastString];
872874 }else {// 别人发的别人领的
873- NSString *strSenderName = [self getUserName: strSendId];
874- NSString *strOpenName = [self getUserName: strOpenId];
875- strContent = [NSString stringWithFormat: @" %@ 领取了%@ 的红包" ,strOpenName,strSenderName];
875+ return nil ;
876876 }
877877 NSDictionary *dataDict = @{@" tipMsg" :strContent,@" serialNo" :strNo};
878878 return dataDict;
0 commit comments