From 245295c29dee913e7a86f762f3a832f27d044251 Mon Sep 17 00:00:00 2001 From: supertiger1234 Date: Sat, 7 Sep 2019 15:34:19 +0100 Subject: [PATCH] fixed notification issue --- src/store/modules/socketIOModule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/socketIOModule.js b/src/store/modules/socketIOModule.js index ceb2844..4528c1c 100644 --- a/src/store/modules/socketIOModule.js +++ b/src/store/modules/socketIOModule.js @@ -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,