fix unsubscribe from "All Channels" profile (#2451)

This commit is contained in:
ChunkyProgrammer 2022-08-16 05:45:39 -04:00 committed by GitHub
parent 33cf88ce31
commit 84b4d230ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -613,7 +613,7 @@ export default Vue.extend({
message: this.$t('Channel.Channel has been removed from your subscriptions')
})
if (this.activeProfile === MAIN_PROFILE_ID) {
if (this.activeProfile._id === MAIN_PROFILE_ID) {
// Check if a subscription exists in a different profile.
// Remove from there as well.
let duplicateSubscriptions = 0
@ -658,7 +658,7 @@ export default Vue.extend({
message: this.$t('Channel.Added channel to your subscriptions')
})
if (this.activeProfile !== MAIN_PROFILE_ID) {
if (this.activeProfile._id !== MAIN_PROFILE_ID) {
const index = primaryProfile.subscriptions.findIndex((channel) => {
return channel.id === this.id
})