mirror of
https://github.com/element-hq/element-desktop
synced 2025-03-15 00:47:47 +01:00
Implement getMaySendNotifications
This commit is contained in:
parent
dcd6e3f8b9
commit
025ae94df2
@ -47,6 +47,7 @@ const fs = require('fs');
|
||||
const afs = fs.promises;
|
||||
|
||||
const crypto = require('crypto');
|
||||
|
||||
let keytar;
|
||||
try {
|
||||
keytar = require('keytar');
|
||||
@ -351,6 +352,9 @@ ipcMain.on('ipcCall', async function(ev, payload) {
|
||||
global.mainWindow.autoHideMenuBar = Boolean(args[0]);
|
||||
global.mainWindow.setMenuBarVisibility(!args[0]);
|
||||
break;
|
||||
case 'getMaySendNotifications':
|
||||
ret = !global.isDoNotDisturb;
|
||||
break;
|
||||
case 'getAppVersion':
|
||||
ret = app.getVersion();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user