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:
parent
bf58489099
commit
db55e1057c
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue