A cross platform Audiobookshelf client for Android and iOS
Dart
Don't pull when local and server positions are equal
Barnabas978cc9cf5cb9
diff --git a/lib/services/sync_logic.dart b/lib/services/sync_logic.dartindex 77540c5b..9c6d8600 100644--- a/lib/services/sync_logic.dart+++ b/lib/services/sync_logic.dart@@ -57,6 +57,7 @@ class SyncLogic {required bool hasOfflineListening,}) {if (serverTimestamp <= localTimestamp) return false;+ if (localTime == serverTime) return false;if (localTime - serverTime > localAheadSafetySeconds) return false;return serverTime >= localTime || !hasOfflineListening;}