新增h5跳转到聊天
This commit is contained in:
@@ -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"]){
|
||||
|
Reference in New Issue
Block a user