发现新朋友跳转

This commit is contained in:
chenshuanglin
2023-03-16 19:28:18 +08:00
parent a493030e3d
commit c0d9021c28

View File

@@ -131,15 +131,15 @@
[tableView deselectRowAtIndexPath:indexPath animated:YES];
if (self.dataSource.count > 0) {
UserInfoModel *model = [self.dataSource safeObjectAtIndex1:indexPath.row];
// if (model.roomUid.integerValue > 0) {
// [XPRoomViewController openRoom:model.uid fromNick:model.title fromType:UserEnterRoomFromType_Home_Recommend fromUid:nil viewController:self];
// }
///
// NSString * sessionId = [NSString stringWithFormat:@"%@",model.uid];
// NIMSession * session = [NIMSession session:sessionId type:NIMSessionTypeP2P];
// SessionViewController * sessionVC = [[SessionViewController alloc] initWithSession:session];
// [self.navigationController pushViewController:sessionVC animated:YES];
if (model.roomUid.length > 0) {
[XPRoomViewController openRoom:model.roomUid fromNick:model.nick fromType:UserEnterRoomFromType_Home_Recommend fromUid:nil viewController:self];
}else{
///
NSString * sessionId = [NSString stringWithFormat:@"%ld",model.uid];
NIMSession * session = [NIMSession session:sessionId type:NIMSessionTypeP2P];
SessionViewController * sessionVC = [[SessionViewController alloc] initWithSession:session];
[self.navigationController pushViewController:sessionVC animated:YES];
}
}
}