fix: construct summary request for user l1 (#2578)

* construct summary should request for summary in user L1

* generated

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Wilson 2025-04-29 13:06:21 -04:00 committed by GitHub
parent bf58489099
commit db55e1057c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,9 @@ class GetAnalyticsController extends BaseController {
_pangeaController = pangeaController;
}
LanguageModel? get _l1 => _pangeaController.languageController.userL1;
LanguageModel? get _l2 => _pangeaController.languageController.userL2;
Client get _client => _pangeaController.matrixState.client;
// the minimum XP required for a given level
@ -507,7 +509,7 @@ class GetAnalyticsController extends BaseController {
final request = ConstructSummaryRequest(
constructs: constructUseOfCurrentLevel,
constructUseMessageContentBodies: constructUseMessageContentBodies,
language: _l2!.langCodeShort,
language: _l1!.langCodeShort,
upperLevel: upperLevel,
lowerLevel: lowerLevel,
);