fix: selected channel notfication blinks.

This commit is contained in:
supertiger1234 2019-10-15 19:37:02 +01:00
parent 60ff0353ca
commit 80e4d3a880
2 changed files with 3 additions and 3 deletions

View file

@ -76,7 +76,7 @@ export default {
const notifications = this.$store.getters.notifications; const notifications = this.$store.getters.notifications;
const channels = this.$store.getters.channels const channels = this.$store.getters.channels
const notification = notifications.find(e => { 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 // unopened dm
if (!notification) { if (!notification) {

View file

@ -182,7 +182,7 @@ export default {
const notifications = this.$store.getters.notifications; const notifications = this.$store.getters.notifications;
const channels = this.$store.getters.channels const channels = this.$store.getters.channels
const notification = notifications.find(e => { 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; return notification;
}, },
@ -190,7 +190,7 @@ export default {
const notifications = this.$store.getters.notifications; const notifications = this.$store.getters.notifications;
const channels = this.$store.getters.channels const channels = this.$store.getters.channels
const notification = notifications.find(e => { 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 // unopened dm
if (!notification) { if (!notification) {