This commit is contained in:
2026-01-31 23:17:58 +08:00
parent 6ae504823b
commit 81bc50ce17
5 changed files with 133 additions and 17 deletions

View File

@@ -868,6 +868,18 @@ static inline CGFloat KBChatAbsTimeInterval(NSTimeInterval interval) {
}];
}
- (void)reloadMessage:(KBAiChatMessage *)message {
if (!message) {
return;
}
NSInteger index = [self.messages indexOfObjectIdenticalTo:message];
if (index == NSNotFound) {
return;
}
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:index inSection:0];
[self.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
}
///
- (BOOL)shouldInsertTimestampForMessage:(KBAiChatMessage *)message {
//