mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-18 22:11:03 +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 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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue