mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-07-05 19:10:52 +00:00
fixed a bug where notifications wouldnt show.
This commit is contained in:
parent
b6f5eddb45
commit
a7a51a34b4
2 changed files with 3 additions and 15 deletions
|
|
@ -66,11 +66,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 (
|
return channels[e.channelID] && !channels[e.channelID].server_id;
|
||||||
channels[e.channelID] &&
|
|
||||||
!channels[e.channelID].server_id &&
|
|
||||||
e.channelID !== this.$store.getters.selectedChannelID
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
// unopened dm
|
// unopened dm
|
||||||
if (!notification) {
|
if (!notification) {
|
||||||
|
|
|
||||||
|
|
@ -214,11 +214,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 (
|
return channels[e.channelID] && channels[e.channelID].server_id;
|
||||||
channels[e.channelID] &&
|
|
||||||
channels[e.channelID].server_id &&
|
|
||||||
e.channelID !== this.$store.getters.selectedChannelID
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
return notification;
|
return notification;
|
||||||
},
|
},
|
||||||
|
|
@ -226,11 +222,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 (
|
return channels[e.channelID] && !channels[e.channelID].server_id;
|
||||||
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