From 54d3ac35f63506250b5f36bdd4b6cc05c40897b4 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Thu, 1 Dec 2022 23:12:46 +0100 Subject: [PATCH] Clear cached subscription videos when removing all subscriptions --- .../components/privacy-settings/privacy-settings.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/privacy-settings/privacy-settings.js b/src/renderer/components/privacy-settings/privacy-settings.js index 4974944a2576..74046499c6bc 100644 --- a/src/renderer/components/privacy-settings/privacy-settings.js +++ b/src/renderer/components/privacy-settings/privacy-settings.js @@ -106,6 +106,13 @@ export default Vue.extend({ this.removeProfile(profile._id) } }) + + this.updateAllSubscriptionsList([]) + this.updateProfileSubscriptions({ + activeProfile: MAIN_PROFILE_ID, + videoList: [], + errorChannels: [] + }) } }, @@ -117,7 +124,9 @@ export default Vue.extend({ 'clearSessionSearchHistory', 'updateProfile', 'removeProfile', - 'updateActiveProfile' + 'updateActiveProfile', + 'updateAllSubscriptionsList', + 'updateProfileSubscriptions' ]) } })