correct reply field names

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-16 17:50:52 +08:00
parent 7e9618d712
commit e778f2b463
5 changed files with 96 additions and 45 deletions

View File

@@ -404,7 +404,7 @@ class ReplyItemGrpc extends StatelessWidget {
rpid: replyItem.id,
);
if (res case Success(:final response)) {
final item = response.translatedReply[replyItem.id];
final item = response.translatedReplies[replyItem.id];
if (item != null && item.hasTranslatedContent()) {
replyControl.showTranslation = true;
replyItem.translatedContent = item.translatedContent;
@@ -477,7 +477,8 @@ class ReplyItemGrpc extends StatelessWidget {
),
),
const SizedBox(width: 2),
if (replyControl.translationSwitch == 2) ...[
if (replyControl.translationSwitch ==
.TRANSLATION_SWITCH_SHOW_TRANSLATION) ...[
_buildTranslateBtn(
context,
theme,