新增h5跳转到聊天

This commit is contained in:
liyuhua
2023-08-18 10:43:10 +08:00
parent 7ded8add3d
commit faf495cf97

View File

@@ -92,6 +92,9 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
[self.view addSubview:self.titleView];
[self.view addSubview:self.contentView];
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(openRoomNotification:) name:kOpenRoomNotification object:nil];
if([[AccountInfoStorage instance] getUid].length == 0){
return;
}
if([ClientConfig shareConfig].roomId != nil){
[self opRoom:[ClientConfig shareConfig].roomId];
[ClientConfig shareConfig].roomId = nil;
@@ -104,6 +107,9 @@ UIKIT_EXTERN NSString * const kOpenRoomNotification;
}
}
-(void)openRoomNotification:(NSNotification *)notification{
if([[AccountInfoStorage instance] getUid].length == 0){
return;
}
NSString *uid = notification.userInfo[@"uid"];
NSString *type = notification.userInfo[@"type"];
if([type isEqualToString:@"kOpenChat"]){