Fix hidden word listening activity to limit sequences to 2 words (#1039)
Fixes #1038 --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/pangeachat/client/issues/1038?shareId=XXXX-XXXX-XXXX-XXXX).
This commit is contained in:
parent
9851154b74
commit
c7ab3e2d37
1 changed files with 4 additions and 1 deletions
|
|
@ -186,8 +186,11 @@ class MessageAnalyticsEntry {
|
|||
(a, b) => a.length > b.length ? a : b,
|
||||
);
|
||||
|
||||
// Truncate the sequence to a maximum of 2 words
|
||||
final truncatedSequence = longestSequence.take(2).toList();
|
||||
|
||||
return TargetTokensAndActivityType(
|
||||
tokens: longestSequence,
|
||||
tokens: truncatedSequence,
|
||||
activityType: ActivityTypeEnum.hiddenWordListening,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue