mirror of
https://github.com/dergigi/boris.git
synced 2025-12-19 07:34:28 +01:00
fix: clean up sync state tracking in offline sync service
- Remove duplicate state tracking from service - State transition detection now fully handled by hook - Fix remaining syncState reference bug - Simplify sync lock mechanism
This commit is contained in:
@@ -48,7 +48,7 @@ export function useOfflineSync({
|
||||
|
||||
if (wasLocalOnly && isNowOnline) {
|
||||
console.log('✈️ Detected transition: Flight Mode → Online')
|
||||
syncLocalEventsToRemote(relayPool, account, true)
|
||||
syncLocalEventsToRemote(relayPool, account)
|
||||
}
|
||||
|
||||
previousStateRef.current.hasRemoteRelays = hasRemoteRelays
|
||||
|
||||
Reference in New Issue
Block a user