新增h5跳转到聊天页

This commit is contained in:
liyuhua
2023-09-01 15:06:49 +08:00
parent 695662600e
commit 79076f549f
4 changed files with 134 additions and 118 deletions

View File

@@ -102,6 +102,7 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
if([ClientConfig shareConfig].chatId != nil){
NIMSession * session = [NIMSession session:[ClientConfig shareConfig].chatId type:NIMSessionTypeP2P];
SessionViewController * sessionVC = [[SessionViewController alloc] initWithSession:session];
sessionVC.isAttention = YES;
[self.navigationController pushViewController:sessionVC animated:YES];
[ClientConfig shareConfig].chatId = nil;
}
@@ -116,6 +117,7 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
if (uid.length > 0) {
NIMSession * session = [NIMSession session:uid type:NIMSessionTypeP2P];
SessionViewController * sessionVC = [[SessionViewController alloc] initWithSession:session];
sessionVC.isAttention = YES;
[self.navigationController pushViewController:sessionVC animated:YES];
[ClientConfig shareConfig].chatId = nil;
}