From 84b4d230ab45e9c42f7392642f85faae3556d6f8 Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Tue, 16 Aug 2022 05:45:39 -0400 Subject: [PATCH] fix unsubscribe from "All Channels" profile (#2451) --- src/renderer/views/Channel/Channel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/views/Channel/Channel.js b/src/renderer/views/Channel/Channel.js index a614027a..f4e40824 100644 --- a/src/renderer/views/Channel/Channel.js +++ b/src/renderer/views/Channel/Channel.js @@ -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 })