Add channel message filter for spam and repeated messages
Client-side filter for channel messages, with no model download: - User rules on message text and/or sender name (contains, whole word, exact), normalised for case, accents, zero-width and look-alike letters. - Automatic checks: repeated characters, same-sender repeats within 10 minutes, and the same sentence (>= 6 words) from 3+ senders within 30 minutes. Windows use send times, so synced history is not a flood. - On-device n-gram classifier trained by Mark as spam / Not spam taps. Filtered messages are kept, never notify or count as unread, are not auto-translated or used for channel previews, and are concealed in reply quotes. They show as a calm, collapsible placeholder that animates open and closed, or can be hidden completely. Includes a Filtered messages list, per-channel toggle, settings screen, translations for all locales and documentation.
This commit is contained in:
1 parent
5ef2c2cd7d
commit
1332c35884
75 files changed
+12527
-254
No files matched your search
@@ -1423,11 +1423,11 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
'Wyświetl inne typy węzłów na mapie';
|
||||
|
||||
@override
|
||||
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||
String get appSettings_showOnlineLinks => 'Pokaż połączenia z mapy online';
|
||||
|
||||
@override
|
||||
String get appSettings_showOnlineLinksSubtitle =>
|
||||
'Display connection lines between nodes from the online map';
|
||||
'Wyświetlaj linie połączeń między węzłami z mapy online';
|
||||
|
||||
@override
|
||||
String get appSettings_timeFilter => 'Filtrowanie Czasu';
|
||||
@@ -2720,7 +2720,7 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
String get map_otherNodes => 'Inne węzły';
|
||||
|
||||
@override
|
||||
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||
String get map_showOnlineLinks => 'Pokaż połączenia z mapy online';
|
||||
|
||||
@override
|
||||
String get map_showOverlaps => 'Nakładające się klucze przekaźników';
|
||||
@@ -6877,4 +6877,217 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get holidayGreeting_newYear =>
|
||||
'Szczęśliwego Nowego Roku|Dobrego Nowego Roku|Udanego Nowego Roku|Happy New Year';
|
||||
|
||||
@override
|
||||
String get messageFilter_title => 'Filtr wiadomości';
|
||||
|
||||
@override
|
||||
String get messageFilter_settingsSubtitle =>
|
||||
'Ukrywaj spam i powtarzające się wiadomości';
|
||||
|
||||
@override
|
||||
String get messageFilter_enabled => 'Filtruj wiadomości';
|
||||
|
||||
@override
|
||||
String get messageFilter_enabledSubtitle => 'Dotyczy wiadomości na kanałach';
|
||||
|
||||
@override
|
||||
String get messageFilter_displayTitle => 'Przefiltrowane wiadomości';
|
||||
|
||||
@override
|
||||
String get messageFilter_displayPlaceholder => 'Pokaż mały znacznik';
|
||||
|
||||
@override
|
||||
String get messageFilter_displayHide => 'Ukryj całkowicie';
|
||||
|
||||
@override
|
||||
String get messageFilter_displayHideHelp =>
|
||||
'Ukryte wiadomości pozostają na liście Przefiltrowanych wiadomości.';
|
||||
|
||||
@override
|
||||
String get messageFilter_rulesSection => 'Twoje reguły';
|
||||
|
||||
@override
|
||||
String get messageFilter_rulesEmpty =>
|
||||
'Brak reguł. Dodaj słowo, wyrażenie lub nazwę nadawcy, aby ukrywać pasujące wiadomości.';
|
||||
|
||||
@override
|
||||
String get messageFilter_addRule => 'Dodaj regułę';
|
||||
|
||||
@override
|
||||
String get messageFilter_editRule => 'Edytuj regułę';
|
||||
|
||||
@override
|
||||
String get messageFilter_rulePattern => 'Słowo, wyrażenie lub nazwa';
|
||||
|
||||
@override
|
||||
String get messageFilter_rulePatternHint => 'np. meshos';
|
||||
|
||||
@override
|
||||
String get messageFilter_ruleWhere => 'Szukaj w';
|
||||
|
||||
@override
|
||||
String get messageFilter_ruleFieldText => 'Treść wiadomości';
|
||||
|
||||
@override
|
||||
String get messageFilter_ruleFieldSender => 'Nazwa nadawcy';
|
||||
|
||||
@override
|
||||
String get messageFilter_ruleFieldBoth => 'Oba';
|
||||
|
||||
@override
|
||||
String get messageFilter_ruleMatch => 'Dopasowanie';
|
||||
|
||||
@override
|
||||
String get messageFilter_ruleMatchContains => 'Zawiera';
|
||||
|
||||
@override
|
||||
String get messageFilter_ruleMatchWholeWord => 'Całe słowo';
|
||||
|
||||
@override
|
||||
String get messageFilter_ruleMatchExact => 'Dokładne';
|
||||
|
||||
@override
|
||||
String get messageFilter_ruleDeleted => 'Reguła usunięta';
|
||||
|
||||
@override
|
||||
String get messageFilter_ruleSaved => 'Reguła zapisana';
|
||||
|
||||
@override
|
||||
String get messageFilter_automaticSection => 'Automatyczne';
|
||||
|
||||
@override
|
||||
String get messageFilter_duplicates => 'Powtarzające się wiadomości';
|
||||
|
||||
@override
|
||||
String get messageFilter_duplicatesSubtitle =>
|
||||
'Ta sama wiadomość wysłana ponownie lub przez kilku nadawców';
|
||||
|
||||
@override
|
||||
String get messageFilter_repeatedCharacters => 'Powtarzające się znaki';
|
||||
|
||||
@override
|
||||
String get messageFilter_repeatedCharactersSubtitle =>
|
||||
'Wiadomości typu „aaaaaaaa” lub „!!!!!!!!”';
|
||||
|
||||
@override
|
||||
String get messageFilter_learning => 'Ucz się z oznaczeń Spam';
|
||||
|
||||
@override
|
||||
String messageFilter_learningSubtitle(int spam, int notSpam) {
|
||||
return 'Przykłady: $spam spam i $notSpam nie-spam';
|
||||
}
|
||||
|
||||
@override
|
||||
String get messageFilter_resetLearning => 'Zresetuj naukę';
|
||||
|
||||
@override
|
||||
String get messageFilter_resetLearningConfirm =>
|
||||
'Zapomnieć wszystko, czego nauczył się filtr z Twoich oznaczeń Spam i Nie spam? Twoje reguły zostaną zachowane.';
|
||||
|
||||
@override
|
||||
String messageFilter_filteredMessages(int count) {
|
||||
return 'Przefiltrowane wiadomości ($count)';
|
||||
}
|
||||
|
||||
@override
|
||||
String get messageFilter_filteredMessagesEmpty =>
|
||||
'Nic nie zostało przefiltrowane.';
|
||||
|
||||
@override
|
||||
String get messageFilter_ghostSingle =>
|
||||
'Ukryta wiadomość · Dotknij, aby zobaczyć';
|
||||
|
||||
@override
|
||||
String messageFilter_ghostMany(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: '$count ukrytej wiadomości · Dotknij, aby zobaczyć',
|
||||
many: '$count ukrytych wiadomości · Dotknij, aby zobaczyć',
|
||||
few: '$count ukryte wiadomości · Dotknij, aby zobaczyć',
|
||||
one: '$count ukryta wiadomość · Dotknij, aby zobaczyć',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String get messageFilter_ghostSingleExpanded =>
|
||||
'Pokazano ukrytą wiadomość · Dotknij, aby ukryć';
|
||||
|
||||
@override
|
||||
String messageFilter_ghostManyExpanded(int count) {
|
||||
String _temp0 = intl.Intl.pluralLogic(
|
||||
count,
|
||||
locale: localeName,
|
||||
other: 'Pokazano $count ukrytej wiadomości · Dotknij, aby ukryć',
|
||||
many: 'Pokazano $count ukrytych wiadomości · Dotknij, aby ukryć',
|
||||
few: 'Pokazano $count ukryte wiadomości · Dotknij, aby ukryć',
|
||||
one: 'Pokazano 1 ukrytą wiadomość · Dotknij, aby ukryć',
|
||||
);
|
||||
return '$_temp0';
|
||||
}
|
||||
|
||||
@override
|
||||
String messageFilter_reasonTextRule(String pattern) {
|
||||
return 'Przefiltrowano: pasuje do „$pattern”';
|
||||
}
|
||||
|
||||
@override
|
||||
String messageFilter_reasonSenderRule(String pattern) {
|
||||
return 'Przefiltrowano: nadawca „$pattern”';
|
||||
}
|
||||
|
||||
@override
|
||||
String get messageFilter_reasonRepeatedCharacters =>
|
||||
'Przefiltrowano: powtarzające się znaki';
|
||||
|
||||
@override
|
||||
String get messageFilter_reasonDuplicate =>
|
||||
'Przefiltrowano: powtórzona wiadomość';
|
||||
|
||||
@override
|
||||
String get messageFilter_reasonCrossSenderDuplicate =>
|
||||
'Przefiltrowano: ta sama wiadomość od kilku nadawców';
|
||||
|
||||
@override
|
||||
String get messageFilter_reasonLearned =>
|
||||
'Przefiltrowano: podobna do wiadomości oznaczonych jako spam';
|
||||
|
||||
@override
|
||||
String get messageFilter_reasonManual =>
|
||||
'Przefiltrowano: oznaczyłeś to jako spam';
|
||||
|
||||
@override
|
||||
String get messageFilter_notSpam => 'Nie spam';
|
||||
|
||||
@override
|
||||
String get messageFilter_hideAgain => 'Ukryj';
|
||||
|
||||
@override
|
||||
String get messageFilter_markSpam => 'Oznacz jako spam';
|
||||
|
||||
@override
|
||||
String get messageFilter_markedSpam => 'Oznaczono jako spam';
|
||||
|
||||
@override
|
||||
String get messageFilter_markedNotSpam => 'Oznaczono jako nie spam';
|
||||
|
||||
@override
|
||||
String get messageFilter_filterSender => 'Filtruj tego nadawcę';
|
||||
|
||||
@override
|
||||
String messageFilter_filterSenderConfirm(String name) {
|
||||
return 'Ukryć wszystkie wiadomości od „$name”?';
|
||||
}
|
||||
|
||||
@override
|
||||
String get messageFilter_filterLikeThis => 'Filtruj podobne wiadomości…';
|
||||
|
||||
@override
|
||||
String get messageFilter_channelToggle => 'Filtruj wiadomości na tym kanale';
|
||||
|
||||
@override
|
||||
String get messageFilter_ghostIconTooltip =>
|
||||
'Ukryte przez Twój filtr wiadomości';
|
||||
}
|
||||
Reference in new issue
Block a user