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).
pull/1490/head
wcjord 12 months ago committed by GitHub
parent 9851154b74
commit c7ab3e2d37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save