mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-07-05 11:00:50 +00:00
fix: selected channel notfication blinks.
This commit is contained in:
parent
60ff0353ca
commit
80e4d3a880
2 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue