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:
zjs81 committed 2026-11-05 23:35:27 -07:00
1 parent 5ef2c2cd7d
commit 1332c35884
75 files changed
+12527 -254

No files matched your search

+1 -103
View File
@@ -1,103 +1 @@
{
"bg": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"de": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"es": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"fr": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"hu": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"it": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"ja": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"ko": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"nl": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"pl": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"pt": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"ru": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"sk": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"sl": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"sv": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"uk": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
],
"zh": [
"appSettings_showOnlineLinks",
"appSettings_showOnlineLinksSubtitle",
"map_showOnlineLinks"
]
}
{}