-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: Don't delete downloaded videos when the user logs out #289
Conversation
@@ -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() |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
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.