1
This commit is contained in:
@@ -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 {
|
||||
// 第一条消息总是显示时间
|
||||
|
||||
Reference in New Issue
Block a user