Clear cached subscription videos when removing all subscriptions (#2905)

This commit is contained in:
absidue 2022-12-02 08:30:27 +01:00 committed by GitHub
parent d793a8bcda
commit c1f257dd79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -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'
])
}
})