发现新朋友跳转
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user