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: Don't delete downloaded videos when the user logs out #289

Merged
merged 4 commits into from
Feb 23, 2024

Conversation

eyatsenkoperpetio
Copy link
Contributor

When a user logs out, the downloaded content should not be deleted, so that when the user logs in again, all downloaded content will be available to him again.

For each user, only their downloaded content should be displayed.

@eyatsenkoperpetio eyatsenkoperpetio changed the title Don't delete downloaded videos when the user logs out feat: Don't delete downloaded videos when the user logs out Feb 20, 2024
rnr
rnr previously approved these changes Feb 20, 2024
@@ -71,8 +71,8 @@ public class ProfileRepository: ProfileRepositoryProtocol {
ProfileEndpoint.logOut(refreshToken: refreshToken, clientID: config.oAuthClientId)
)
storage.clear()
await downloadManager.deleteAllFiles()
coreDataHandler.clear()
//await downloadManager.deleteAllFiles()
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need these commented out lines?

await downloadManager.deleteAllFiles()
coreDataHandler.clear()
//await downloadManager.deleteAllFiles()
//coreDataHandler.clear()
Copy link
Contributor

Choose a reason for hiding this comment

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

@eyatsenkoperpetio Do we need to keep this as well if we want to keep downloaded files?

Copy link
Contributor

@saeedbashir saeedbashir left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@volodymyr-chekyrta volodymyr-chekyrta merged commit 4f60316 into openedx:develop Feb 23, 2024
3 checks passed
@rnr rnr deleted the feat/no-delete-downloads-267 branch February 29, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants