This commit is contained in:
启星
2025-12-04 14:11:00 +08:00
parent 2d37ab6844
commit 1c5a908dda
49 changed files with 505 additions and 192 deletions

View File

@@ -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];

View File

@@ -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];
// }