Files
android/app
Patrick Honkonen 802256875a Refactor MigrateToMyItemsViewModel dependencies and sync logic
Objective:
Remove unused dependencies and simplify the vault sync invocation during ViewModel initialization.

Behavioral changes:
The vault sync is now triggered using `sync` instead of `syncForResult` and is no longer wrapped in a `viewModelScope` coroutine, simplifying the initialization flow.

Specific changes:
- Modify `MigrateToMyItemsViewModel` to remove the unused `VaultMigrationManager` dependency.
- Update `MigrateToMyItemsViewModel` constructor to accept `VaultSyncManager` as a parameter rather than a property.
- Update the `init` block in `MigrateToMyItemsViewModel` to call `vaultSyncManager.sync(forced = true)` directly without a coroutine wrapper.
- Update `MigrateToMyItemsViewModelTest` to remove the mock and constructor usage of `VaultMigrationManager`.
2026-01-07 15:26:41 -05:00
..