跨进程 键盘用ai 在主应用里也要显示
This commit is contained in:
@@ -256,7 +256,20 @@ static NSString * const KBChatSessionDidResetNotification = @"KBChatSessionDidRe
|
||||
if (self.hasLoadedData || self.isLoading) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
[self loadChatHistory];
|
||||
}
|
||||
|
||||
- (void)refreshChatHistory {
|
||||
// 重置分页状态
|
||||
self.currentPage = 1;
|
||||
self.hasMoreHistory = YES;
|
||||
self.hasLoadedData = NO;
|
||||
self.isLoading = NO;
|
||||
|
||||
// 清空当前消息并重新加载
|
||||
[self.messages removeAllObjects];
|
||||
[self.chatView clearMessages];
|
||||
[self loadChatHistory];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user