Skip to content

Commit 8d9cf0b

Browse files
guangyaoguangyao
authored andcommitted
Fix最近会话不显示
1 parent 0decc0c commit 8d9cf0b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ios/RNNeteaseIm/RNNeteaseIm/NIMViewController.m

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ - (void)viewDidLoad {
4343
#pragma mark - NIMLoginManagerDelegate
4444
- (void)onLogin:(NIMLoginStep)step{
4545
NSString *strStatus = [NSString stringWithFormat:@"%zd",step];
46+
switch (step) {
47+
case NIMLoginStepLinkOK:
48+
case NIMLoginStepSyncOK:
49+
case NIMLoginStepSyncing:
50+
[self getResouces];
51+
break;
52+
53+
default:
54+
break;
55+
}
56+
4657
[NIMModel initShareMD].NetStatus = strStatus;
4758
}
4859
//删除一行

0 commit comments

Comments
 (0)