mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
Fix channel message dedup logic
This commit is contained in:
@@ -647,9 +647,8 @@ class MessagesProvider with ChangeNotifier {
|
||||
return false;
|
||||
}
|
||||
|
||||
final timestampDeltaSeconds = (existing.senderTimestamp -
|
||||
message.senderTimestamp)
|
||||
.abs();
|
||||
final timestampDeltaSeconds =
|
||||
(existing.senderTimestamp - message.senderTimestamp).abs();
|
||||
final withinChannelRepeatWindow = timestampDeltaSeconds <= 5;
|
||||
|
||||
final existingSenderKey = existing.senderKeyShort;
|
||||
|
||||
Reference in New Issue
Block a user