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,