opt del reply

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-27 14:13:14 +08:00
parent c34eeba859
commit 8b6320730c
2 changed files with 4 additions and 2 deletions

View File

@@ -204,7 +204,9 @@ abstract class ReplyController<R> extends CommonListController<R, ReplyInfo> {
if (subIndex == null) { if (subIndex == null) {
list.removeAt(index); list.removeAt(index);
} else { } else {
list[index].replies.removeAt(subIndex); list[index]
..count -= 1
..replies.removeAt(subIndex);
} }
count.value -= 1; count.value -= 1;
loadingState.refresh(); loadingState.refresh();

View File

@@ -553,7 +553,7 @@ class ReplyItemGrpc extends StatelessWidget {
), ),
), ),
TextSpan( TextSpan(
text: replyItem.replyControl.subReplyEntryText, text: '${replyItem.count}条回复',
style: TextStyle( style: TextStyle(
color: theme.colorScheme.primary, color: theme.colorScheme.primary,
), ),