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) {