处理了评论新增评论,在聊天里的评论数也一同改变
This commit is contained in:
@@ -940,6 +940,9 @@ static NSInteger const kRepliesLoadCount = 5;
|
||||
strongSelf.totalCommentCount += 1;
|
||||
[strongSelf updateTitle];
|
||||
[strongSelf hideEmptyState];
|
||||
if ([strongSelf.delegate respondsToSelector:@selector(commentView:didUpdateTotalCommentCount:)]) {
|
||||
[strongSelf.delegate commentView:strongSelf didUpdateTotalCommentCount:strongSelf.totalCommentCount];
|
||||
}
|
||||
|
||||
[strongSelf.tableView beginUpdates];
|
||||
[strongSelf.tableView
|
||||
@@ -1044,6 +1047,9 @@ static NSInteger const kRepliesLoadCount = 5;
|
||||
|
||||
strongSelf.totalCommentCount += 1;
|
||||
[strongSelf updateTitle];
|
||||
if ([strongSelf.delegate respondsToSelector:@selector(commentView:didUpdateTotalCommentCount:)]) {
|
||||
[strongSelf.delegate commentView:strongSelf didUpdateTotalCommentCount:strongSelf.totalCommentCount];
|
||||
}
|
||||
|
||||
// 若当前已完整展开,则直接插入新行;否则保持 displayedReplies 为前缀,避免破坏 loadMoreReplies 逻辑
|
||||
if (wasFullyExpanded) {
|
||||
|
||||
Reference in New Issue
Block a user