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:
commit
7d45fcc319
1 changed files with 8 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue