Fix false repeat flags, add repeat-sends setting, limit holiday animations

Message filter:
- Ignore copies of a message already seen (same sender, text and send
  second). Switching between companions re-synced messages the first one
  had delivered; they missed per-radio storage dedup and were flagged as
  repeats.
- Exempt replies and @[name] mentions from repeat detection.
- New "Sends to count as a repeat" setting (2-5, default 2). Each send
  must fall within 10 minutes of the previous one.
- Translations for the new strings in all locales.

Holiday animations:
- Only one plays at a time; greetings arriving while one is playing or
  within 5 seconds after it ends are dropped, not queued.
- Christmas map "self" marker: Santa hat was upside down.
This commit is contained in:
zjs81 committed 2026-11-08 01:33:05 -07:00
1 parent 59e571fb20
commit ddf0b9f553
52 files changed
+526 -24

No files matched your search

@@ -366,6 +366,36 @@ class _AutomaticOptions extends StatelessWidget {
service.settings.copyWith(duplicates: value),
),
),
ListTile(
key: const ValueKey('messageFilter_repeatSends'),
contentPadding: padding,
enabled: settings.duplicates,
leading: const Icon(Icons.repeat, size: 24),
title: Text(l10n.messageFilter_repeatSends),
subtitle: Text(
l10n.messageFilter_repeatSendsSubtitle(settings.repeatSends),
),
trailing: DropdownButton<int>(
key: const ValueKey('messageFilter_repeatSendsDropdown'),
value: settings.repeatSends,
onChanged: settings.duplicates
? (value) {
if (value == null) return;
service.updateSettings(
service.settings.copyWith(repeatSends: value),
);
}
: null,
items: [
for (
var n = MessageFilterSettings.minRepeatSends;
n <= MessageFilterSettings.maxRepeatSends;
n++
)
DropdownMenuItem(value: n, child: Text('$n')),
],
),
),
const Divider(height: 1, indent: 16),
SwitchListTile(
key: const ValueKey('messageFilter_repeatedCharactersSwitch'),