Skip to content

Commit a16e63d

Browse files
committed
Merge branch 'master' of github.com:reactnativecomponent/react-native-netease-im
2 parents 3812cd5 + 403af22 commit a16e63d

File tree

5 files changed

+6
-15
lines changed

5 files changed

+6
-15
lines changed

ios/RNNeteaseIm/RNNeteaseIm/ContactViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ -(void)adduserId:(NSString *)userId andVerifyType:(NSString *)strType andMag:(NS
320320
NSString *myID = [NIMSDK sharedSDK].loginManager.currentAccount;
321321
NIMUser *user = [[NIMSDK sharedSDK].userManager userInfo:myID];
322322
NSString *apnsContent = [NSString stringWithFormat:@"%@ %@",user.userInfo.nickName,apnsText];
323-
NSDictionary *dataDict = @{@"type":@"1",@"data":@{@"content":msg}};
323+
NSDictionary *dataDict = @{@"type":@"1",@"data":@{@"content":[NSString stringWithFormat:@"%@",msg]}};
324324
[[NIMSDK sharedSDK].userManager requestFriend:request completion:^(NSError *error) {
325325
if (!error) {
326326
success(successText);

ios/RNNeteaseIm/RNNeteaseIm/ConversationViewController.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,6 @@ - (void)recordAudioDidCancelled {
654654
- (void)recordAudioProgress:(NSTimeInterval)currentTime{
655655
NIMModel *model = [NIMModel initShareMD];
656656
NSDictionary *Audic = @{@"currentTime":[NSString stringWithFormat:@"%f",currentTime],@"recordPower":[NSString stringWithFormat:@"%f",[[NIMSDK sharedSDK].mediaManager recordPeakPower]]};
657-
NSLog(@"---------%@",Audic);
658657
model.audioDic = Audic;
659658
}
660659

ios/RNNeteaseIm/RNNeteaseIm/NIMViewController.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ -(void)getRecentContactListsuccess:(SUCCESS)suc andError:(ERROR)err{
147147
NSMutableArray *sessionList = [NSMutableArray array];
148148
for (NIMRecentSession *recent in NIMlistArr) {
149149
NSMutableDictionary *dic = [NSMutableDictionary dictionary];
150-
[dic setObject:recent.session.sessionId forKey:@"contactId"];
150+
[dic setObject:[NSString stringWithFormat:@"%@",recent.session.sessionId] forKey:@"contactId"];
151151
[dic setObject:[NSString stringWithFormat:@"%ld", recent.session.sessionType] forKey:@"sessionType"];
152152
//未读
153153
[dic setObject:[NSString stringWithFormat:@"%ld", recent.unreadCount] forKey:@"unreadCount"];
@@ -192,7 +192,7 @@ -(void)getResouces{
192192

193193
if (recent.session.sessionType == NIMSessionTypeP2P) {
194194
NSMutableDictionary *dic = [NSMutableDictionary dictionary];
195-
[dic setObject:recent.session.sessionId forKey:@"contactId"];
195+
[dic setObject:[NSString stringWithFormat:@"%@",recent.session.sessionId] forKey:@"contactId"];
196196
[dic setObject:[NSString stringWithFormat:@"%ld", recent.session.sessionType] forKey:@"sessionType"];
197197
//未读
198198
NSString *strUnreadCount = [NSString stringWithFormat:@"%ld", recent.unreadCount];
@@ -223,7 +223,7 @@ -(void)getResouces{
223223
else{
224224
if ( [[NIMSDK sharedSDK].teamManager isMyTeam:recent.lastMessage.session.sessionId]) {
225225
NSMutableDictionary *dic = [NSMutableDictionary dictionary];
226-
[dic setObject:recent.session.sessionId forKey:@"contactId"];
226+
[dic setObject:[NSString stringWithFormat:@"%@",recent.session.sessionId] forKey:@"contactId"];
227227
[dic setObject:[NSString stringWithFormat:@"%ld", recent.session.sessionType] forKey:@"sessionType"];
228228
//未读
229229
NSString *strUnreadCount = [NSString stringWithFormat:@"%ld", recent.unreadCount];
@@ -255,7 +255,6 @@ -(void)getResouces{
255255
}
256256
}
257257

258-
// [NIMModel initShareMD].recentListArr = sessionList;
259258
NSDictionary *recentDict = @{@"recents":sessionList,@"unreadCount":[NSString stringWithFormat:@"%zd",allUnreadNum]};
260259
[NIMModel initShareMD].recentDict = recentDict;
261260
}

ios/RNNeteaseIm/RNNeteaseIm/NoticeViewController.m

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ @interface NoticeViewController ()<NIMUserManagerDelegate,NIMSystemNotificationM
1919

2020
@implementation NoticeViewController
2121

22-
- (void)dealloc{
23-
NSLog(@"NoticeViewController----dealloc");
24-
}
2522

2623
+(instancetype)initWithNoticeViewController{
2724
static NoticeViewController *notVC = nil;
@@ -64,11 +61,8 @@ -(void)initWithDelegate{
6461
[[NIMSDK sharedSDK].systemNotificationManager markNotificationsAsRead:notices];
6562
[[[NIMSDK sharedSDK] systemNotificationManager] deleteNotification:notices];
6663
}
67-
6864
}
6965
}
70-
71-
7266
}
7367

7468
[self ReFrash];
@@ -114,18 +108,17 @@ - (void)onReceiveSystemNotification:(NIMSystemNotification *)notification{
114108
if (attach.operationType == NIMUserOperationVerify) {//如果是通过添加好友请求,标为已读并删除
115109
[[NIMSDK sharedSDK].systemNotificationManager markNotificationsAsRead:notification];
116110
[[[NIMSDK sharedSDK] systemNotificationManager] deleteNotification:notification];
111+
return;
117112
}
118113
}
119114

120-
121115
if (_notifications.count) {
122116
for (NIMSystemNotification *notices in _notifications) {
123117

124118
if ([notices.sourceID isEqualToString:notification.sourceID]) {
125119

126120
[[[NIMSDK sharedSDK] systemNotificationManager] deleteNotification:notices];
127121
[_notifications removeObject:notices];
128-
129122
}
130123
}
131124
}

ios/RNNeteaseIm/RNNeteaseIm/TeamViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ -(void)initWithDelegate{
3232
NSMutableArray *teamArr = [NSMutableArray array];
3333
for (NIMTeam *team in _myTeams) {
3434
NSMutableDictionary *dic = [NSMutableDictionary dictionary];
35-
[dic setObject:team.teamId forKey:@"teamId"];
35+
[dic setObject:[NSString stringWithFormat:@"%@",team.teamId] forKey:@"teamId"];
3636
[dic setObject:[NSString stringWithFormat:@"%@", team.teamName] forKey:@"name"];
3737
[dic setObject:[NSString stringWithFormat:@"%@", team.avatarUrl ] forKey:@"avatar"];
3838
[dic setObject:[NSString stringWithFormat:@"%ld", team.type] forKey:@"type"];

0 commit comments

Comments
 (0)