fixed notification issue

This commit is contained in:
supertiger1234 2019-09-07 15:34:19 +01:00
parent 3d534f2b68
commit 245295c29d

View file

@ -176,7 +176,7 @@ const actions = {
const disableDesktopNotification = context.rootGetters['settingsModule/settings'].notification.disableDesktopNotification;
if (disableDesktopNotification === true) return
const channel = context.getters.channels[data.message.channelID];
if (channel.server_id) {
if (channel && channel.server_id) {
const server = context.getters['servers/servers'][channel.server_id]
DesktopNotification.serverMessage({
serverName: server.name,