mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
Merge remote-tracking branch 'origin/main' into feature/sync_assets_trashed_state
# Conflicts: # mobile/drift_schemas/main/drift_schema_v12.json # mobile/lib/infrastructure/repositories/db.repository.dart # mobile/lib/infrastructure/repositories/db.repository.steps.dart # mobile/test/drift/main/generated/schema.dart # mobile/test/drift/main/generated/schema_v12.dart
This commit is contained in:
commit
3cc3637862
182 changed files with 1598 additions and 4371 deletions
|
|
@ -27,7 +27,7 @@ class SyncStreamService {
|
|||
|
||||
bool get isCancelled => _cancelChecker?.call() ?? false;
|
||||
|
||||
Future<void> sync() async {
|
||||
Future<bool> sync() async {
|
||||
_logger.info("Remote sync request for user");
|
||||
// Start the sync stream and handle events
|
||||
bool shouldReset = false;
|
||||
|
|
@ -36,6 +36,7 @@ class SyncStreamService {
|
|||
_logger.info("Resetting sync state as requested by server");
|
||||
await _syncApiRepository.streamChanges(_handleEvents);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Future<void> _handleEvents(List<SyncEvent> events, Function() abort, Function() reset) async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue