提交
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
-(void)moreAction{
|
||||
if (self.data.groupID.length>0) {
|
||||
QXGuildGroupSettingVC *vc = [[QXGuildGroupSettingVC alloc] init];
|
||||
vc.groupId = [self.data.groupID stringByReplacingOccurrencesOfString:@"g" withString:@""];
|
||||
vc.groupId = self.data.groupID;
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
}else{
|
||||
QXMenuPopView *menuView = [[QXMenuPopView alloc] initWithPoint:CGPointMake(SCREEN_WIDTH-60, NavContentHeight+10)];
|
||||
@@ -103,6 +103,7 @@
|
||||
}
|
||||
|
||||
- (void)initSubViews{
|
||||
// TUIConversationListBaseDataProvider markConversationAsRead
|
||||
[TUIChatConfig_Classic sharedConfig].delegate = self;
|
||||
if (self.data.groupID.length>0) {
|
||||
TUIGroupChatViewController *vc = [[TUIGroupChatViewController alloc] init];
|
||||
|
||||
@@ -74,14 +74,15 @@
|
||||
[self.view addSubview:vc.view];
|
||||
}
|
||||
-(void)reloadConversions{
|
||||
[self.vc.view removeFromSuperview];
|
||||
[self.vc removeFromParentViewController];
|
||||
self.vc = nil;
|
||||
self.vc = [[TUIConversationListController alloc] init];
|
||||
self.vc.view.frame = CGRectMake(0, NavContentHeight, SCREEN_WIDTH, self.view.height-NavContentHeight);
|
||||
self.vc.tableViewForAll.tableHeaderView = self.topView;
|
||||
[self addChildViewController:self.vc];
|
||||
[self.view addSubview:self.vc.view];
|
||||
// [self.vc.view removeFromSuperview];
|
||||
// [self.vc removeFromParentViewController];
|
||||
// self.vc = nil;
|
||||
// self.vc = [[TUIConversationListController alloc] init];
|
||||
// self.vc.view.frame = CGRectMake(0, NavContentHeight, SCREEN_WIDTH, self.view.height-NavContentHeight);
|
||||
// self.vc.tableViewForAll.tableHeaderView = self.topView;
|
||||
// [self addChildViewController:self.vc];
|
||||
// [self.view addSubview:self.vc.view];
|
||||
[self.vc reloadConversationList];
|
||||
}
|
||||
|
||||
- (void)conversationListController:(UIViewController *)conversationController
|
||||
@@ -98,6 +99,7 @@
|
||||
data.title = conversation.title;
|
||||
data.faceUrl = conversation.faceUrl;
|
||||
vc.data = data;
|
||||
[self.vc.dataProvider markConversationAsRead:conversation];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
// }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user