This commit is contained in:
2026-01-26 13:51:38 +08:00
parent 77fd46aa34
commit 0fa31418f6
2 changed files with 12 additions and 3 deletions

View File

@@ -546,10 +546,12 @@ static const NSTimeInterval kTimestampInterval = 5 * 60; // 5 分钟
self.playingCellIndexPath = indexPath;
// Cell
// Cell TableView
KBChatAssistantMessageCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
if ([cell isKindOfClass:[KBChatAssistantMessageCell class]]) {
[cell updateVoicePlayingState:YES];
[UIView performWithoutAnimation:^{
[cell updateVoicePlayingState:YES];
}];
}
}
@@ -561,7 +563,10 @@ static const NSTimeInterval kTimestampInterval = 5 * 60; // 5 分钟
if (self.playingCellIndexPath) {
KBChatAssistantMessageCell *cell = [self.tableView cellForRowAtIndexPath:self.playingCellIndexPath];
if ([cell isKindOfClass:[KBChatAssistantMessageCell class]]) {
[cell updateVoicePlayingState:NO];
// TableView
[UIView performWithoutAnimation:^{
[cell updateVoicePlayingState:NO];
}];
}
self.playingCellIndexPath = nil;
}