1
This commit is contained in:
@@ -546,6 +546,10 @@ static NSString * const KBChatSessionDidResetNotification = @"KBChatSessionDidRe
|
||||
if (self.persona && self.persona.personaId == companionId) {
|
||||
NSLog(@"[KBPersonaChatCell] 收到聊天重置通知:companionId=%ld, 清空聊天记录", (long)companionId);
|
||||
|
||||
self.shouldAutoPlayPrologueAudio = NO;
|
||||
self.hasPlayedPrologueAudio = NO;
|
||||
[self.chatView stopPlayingAudio];
|
||||
|
||||
// 清空消息数组
|
||||
self.messages = [NSMutableArray array];
|
||||
self.hasLoadedData = NO;
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
[super viewDidLoad];
|
||||
|
||||
self.kb_navView.hidden = YES;
|
||||
self.view.backgroundColor = [UIColor blackColor];
|
||||
// self.view.backgroundColor = [UIColor blackColor];
|
||||
self.aiVM = [[AiVM alloc] init];
|
||||
|
||||
/// 1:控件初始化
|
||||
@@ -261,7 +261,7 @@
|
||||
- (UIButton *)closeButton {
|
||||
if (!_closeButton) {
|
||||
_closeButton = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[_closeButton setImage:[UIImage imageNamed:@"comment_close_icon"] forState:UIControlStateNormal];
|
||||
[_closeButton setImage:[UIImage imageNamed:@"ai_close_icon"] forState:UIControlStateNormal];
|
||||
[_closeButton addTarget:self action:@selector(closeButtonTapped) forControlEvents:UIControlEventTouchUpInside];
|
||||
}
|
||||
return _closeButton;
|
||||
|
||||
@@ -159,6 +159,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated {
|
||||
[super viewWillDisappear:animated];
|
||||
for (NSIndexPath *indexPath in self.collectionView.indexPathsForVisibleItems) {
|
||||
KBPersonaChatCell *cell = (KBPersonaChatCell *)[self.collectionView cellForItemAtIndexPath:indexPath];
|
||||
if (cell) {
|
||||
[cell onResignedCurrentPersonaCell];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)viewDidLayoutSubviews {
|
||||
[super viewDidLayoutSubviews];
|
||||
if (self.bottomMaskLayer) {
|
||||
|
||||
Reference in New Issue
Block a user