Merge pull request #4641 from pangeachat/4639-dont-do-snackbar-for-not-proper-grammar

fix: exclude 'not proper' noun type from construct analytics popups
This commit is contained in:
ggurdin 2025-11-11 14:25:17 -05:00 committed by GitHub
commit 7d45fcc319
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -243,7 +243,14 @@ class GetAnalyticsController extends BaseController {
}
void _onUnlockMorphLemmas(Set<ConstructIdentifier> unlocked) {
setState({'unlocked_constructs': unlocked});
const excludedLemmas = {'not_proper'};
final filtered = {
for (final id in unlocked)
if (!excludedLemmas.contains(id.lemma.toLowerCase())) id,
};
setState({'unlocked_constructs': filtered});
}
/// A local cache of eventIds and construct uses for messages sent since the last update.