mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-07-05 02:50:46 +00:00
fixed notification issue
This commit is contained in:
parent
3d534f2b68
commit
245295c29d
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ const actions = {
|
||||||
const disableDesktopNotification = context.rootGetters['settingsModule/settings'].notification.disableDesktopNotification;
|
const disableDesktopNotification = context.rootGetters['settingsModule/settings'].notification.disableDesktopNotification;
|
||||||
if (disableDesktopNotification === true) return
|
if (disableDesktopNotification === true) return
|
||||||
const channel = context.getters.channels[data.message.channelID];
|
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]
|
const server = context.getters['servers/servers'][channel.server_id]
|
||||||
DesktopNotification.serverMessage({
|
DesktopNotification.serverMessage({
|
||||||
serverName: server.name,
|
serverName: server.name,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue