diff --git a/src/components/app/FriendsList.vue b/src/components/app/FriendsList.vue index 8f3749e..3bfbd50 100644 --- a/src/components/app/FriendsList.vue +++ b/src/components/app/FriendsList.vue @@ -66,11 +66,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 && - e.channelID !== this.$store.getters.selectedChannelID - ); + return channels[e.channelID] && !channels[e.channelID].server_id; }); // unopened dm if (!notification) { diff --git a/src/components/app/Navigation.vue b/src/components/app/Navigation.vue index 3532be3..94b6de5 100644 --- a/src/components/app/Navigation.vue +++ b/src/components/app/Navigation.vue @@ -214,11 +214,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 && - e.channelID !== this.$store.getters.selectedChannelID - ); + return channels[e.channelID] && channels[e.channelID].server_id; }); return notification; }, @@ -226,11 +222,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 && - e.channelID !== this.$store.getters.selectedChannelID - ); + return channels[e.channelID] && !channels[e.channelID].server_id; }); // unopened dm if (!notification) {