mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-16 21:11:16 +00:00
fixed more user error
This commit is contained in:
parent
ab4b7fe12d
commit
251a3829b7
1 changed files with 1 additions and 6 deletions
|
|
@ -3,7 +3,7 @@ import {bus} from '../../main'
|
|||
import {router} from './../../router'
|
||||
import Vue from 'vue';
|
||||
import DesktopNotification from '@/utils/ElectronJS/DesktopNotification'
|
||||
import isElectron from '@/utils/ElectronJS/DesktopNotification'
|
||||
import isElectron from '@/utils/ElectronJS/isElectron'
|
||||
import { isMobile } from '@/utils/Mobile';
|
||||
|
||||
const state = {
|
||||
|
|
@ -179,16 +179,11 @@ const actions = {
|
|||
const disableDesktopNotification = context.rootGetters['settingsModule/settings'].notification.disableDesktopNotification;
|
||||
|
||||
|
||||
|
||||
// if (disableDesktopNotification === true) return
|
||||
|
||||
// if (!isElectron || disableDesktopNotification === undefined) return;
|
||||
if (isMobile()) return;
|
||||
if (isElectron && disableDesktopNotification === undefined) return sendNotification();
|
||||
if (disableDesktopNotification !== undefined && disableDesktopNotification === false) return sendNotification()
|
||||
|
||||
|
||||
|
||||
function sendNotification() {
|
||||
if (channel && channel.server_id) {
|
||||
const server = context.getters['servers/servers'][channel.server_id]
|
||||
|
|
|
|||
Loading…
Reference in a new issue