Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mobile): render assets on device by default #10470

Merged
merged 2 commits into from
Jun 22, 2024

Conversation

alextran1502
Copy link
Contributor

@alextran1502 alextran1502 commented Jun 18, 2024

This is the first step in reworking the upload mechanism.

This PR removes the relationship between selected albums for backup so that it can be rendered on the timeline. All local assets are rendered on the timeline by default.

@alextran1502 alextran1502 changed the title feat(mobile): render asset on device by default feat(mobile): render assets on device by default Jun 18, 2024
_syncService.removeAllLocalAlbumsAndAssets();
}
return false;
}
final List<AssetPathEntity> onDevice =
await PhotoManager.getAssetPathList(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe we can just get the Recents album here, which has all the assets?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, the hash function only returns once it is done with all assets in the album. Maybe it would be better if we convert it to the stream for better user experience

@alextran1502 alextran1502 merged commit 32da9d9 into main Jun 22, 2024
23 of 24 checks passed
@alextran1502 alextran1502 deleted the feat/mobile/render-local-asset-by-default branch June 22, 2024 16:13
alextran1502 added a commit that referenced this pull request Jul 2, 2024
alextran1502 added a commit that referenced this pull request Jul 2, 2024
)

Revert "feat(mobile): render assets on device by default (#10470)"

This reverts commit 32da9d9.
alextran1502 added a commit that referenced this pull request Jul 2, 2024
* feat(mobile): render asset on device by default

* remove unused service
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.

1 participant