Skip synCall for logged out users

This commit is contained in:
Neeraj Gupta 2023-02-03 12:12:27 +05:30
parent fc69e420e6
commit 4ac064e327
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -171,6 +171,10 @@ class LocalSyncService {
}
Future<bool> syncAll() async {
if (!Configuration.instance.isLoggedIn()) {
_logger.warning("syncCall called when user is not logged in");
return false;
}
final stopwatch = EnteWatch("localSyncAll")..start();
final localAssets = await getAllLocalAssets();