Skip to content

feat: optionally sync deletes to mobile - #16153

Closed
aleksandrsovtan wants to merge 14 commits into
immich-app:mainfrom
aleksandrsovtan:mobile/deleting_local_file_android
Closed

feat: optionally sync deletes to mobile#16153
aleksandrsovtan wants to merge 14 commits into
immich-app:mainfrom
aleksandrsovtan:mobile/deleting_local_file_android

Conversation

@aleksandrsovtan

Copy link
Copy Markdown
Contributor

Description

Delete from web and sync to mobile (android)

#3594 (reply in thread)

@bo0tzz bo0tzz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fully deletes local files when on the server side they've only been moved into the trash so far. I don't think that's the desired behaviour?

@benmccann

Copy link
Copy Markdown
Collaborator

We'll probably need to restore assets on the mobile device when restored from trash on the web

Comment thread mobile/android/app/src/main/kotlin/app/alextran/immich/MainActivity.kt Outdated
@benmccann

Copy link
Copy Markdown
Collaborator

The other piece of feedback from the maintainers is that this should live behind an option that is disabled by default. To start with it can live under the Advanced heading. In the future, perhaps after it's been battle tested a bit and we have a review screen, it could be moved to Backup

Comment thread mobile/android/app/src/main/kotlin/app/alextran/immich/MainActivity.kt Outdated
Comment thread mobile/android/app/src/main/kotlin/app/alextran/immich/MainActivity.kt Outdated
Comment thread mobile/android/app/src/main/kotlin/app/alextran/immich/MainActivity.kt Outdated
@danieldietzler danieldietzler changed the title Mobile: deleting local file android feat: optionally sync deletes to mobile Mar 8, 2025
.toList();

for (var asset in matchedAssets) {
FileTrashManager.moveToTrash(asset.fileName);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should create a file repository and move all methods from the FileTrashManager library in there. It helps with mocking the library for testing

"**/.fvm": true
}
} No newline at end of file
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this change

@alextran1502 alextran1502 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please write down in the PR description of how you have tested the PR?

Thanks

@benmccann

Copy link
Copy Markdown
Collaborator

Closing in favor of the new PR where feedback has been addressed: #16732

@benmccann benmccann closed this Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants