display Regions in received Messages and allow reply to same region.

This commit is contained in:
ericz committed 2026-09-21 17:52:33 +02:00
1 parent d5f54dfa11
commit 20e01145e6
9 files changed
+177 -15

No files matched your search

+1 -3
View File
@@ -11,9 +11,7 @@ import '../connector/meshcore_protocol.dart';
/// do the same so the repeater always gets the phone's time.
String normalizeRepeaterClockSyncCommand(String command, {int? nowSeconds}) {
final epoch = nowSeconds ?? DateTime.now().millisecondsSinceEpoch ~/ 1000;
return command.trim().toLowerCase() == 'clock sync'
? 'time $epoch'
: command;
return command.trim().toLowerCase() == 'clock sync' ? 'time $epoch' : command;
}
class RepeaterCommandService {