From 80e4d3a88078f1150fd2d37b9a01b5f99ffe58a9 Mon Sep 17 00:00:00 2001 From: supertiger1234 Date: Tue, 15 Oct 2019 19:37:02 +0100 Subject: [PATCH] fix: selected channel notfication blinks. --- src/components/app/FriendsList.vue | 2 +- src/views/App.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/app/FriendsList.vue b/src/components/app/FriendsList.vue index a160154..fbe4184 100644 --- a/src/components/app/FriendsList.vue +++ b/src/components/app/FriendsList.vue @@ -76,7 +76,7 @@ export default { const notifications = this.$store.getters.notifications; const channels = this.$store.getters.channels const notification = notifications.find(e => { - return channels[e.channelID] && !channels[e.channelID].server_id + return channels[e.channelID] && !channels[e.channelID].server_id && e.channelID !== this.$store.getters.selectedChannelID }) // unopened dm if (!notification) { diff --git a/src/views/App.vue b/src/views/App.vue index 5125675..8a46142 100644 --- a/src/views/App.vue +++ b/src/views/App.vue @@ -182,7 +182,7 @@ export default { const notifications = this.$store.getters.notifications; const channels = this.$store.getters.channels const notification = notifications.find(e => { - return channels[e.channelID] && channels[e.channelID].server_id + return channels[e.channelID] && channels[e.channelID].server_id && e.channelID !== this.$store.getters.selectedChannelID }) return notification; }, @@ -190,7 +190,7 @@ export default { const notifications = this.$store.getters.notifications; const channels = this.$store.getters.channels const notification = notifications.find(e => { - return channels[e.channelID] && !channels[e.channelID].server_id + return channels[e.channelID] && !channels[e.channelID].server_id && e.channelID !== this.$store.getters.selectedChannelID }) // unopened dm if (!notification) {