fixed a bug where notifications wouldnt show.

This commit is contained in:
supertiger1234 2019-11-06 10:36:15 +00:00
parent b6f5eddb45
commit a7a51a34b4
2 changed files with 3 additions and 15 deletions

View file

@ -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) {

View file

@ -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) {