mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 23:18:21 +00:00
electron-main: Fix some lint issues.
This commit is contained in:
@@ -505,17 +505,17 @@ ipcMain.on('seshat', async function(ev, payload) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'initEventIndex':
|
case 'initEventIndex':
|
||||||
|
if (eventIndex === null) {
|
||||||
const userId = args[0];
|
const userId = args[0];
|
||||||
const deviceId = args[1];
|
const deviceId = args[1];
|
||||||
|
const passphraseKey = `seshat|${userId}|${deviceId}`;
|
||||||
|
|
||||||
if (eventIndex === null) {
|
|
||||||
let changePassphrase = false;
|
let changePassphrase = false;
|
||||||
let passphrase = seshatDefaultPassphrase;
|
let passphrase = seshatDefaultPassphrase;
|
||||||
|
|
||||||
if (keytar) {
|
if (keytar) {
|
||||||
try {
|
try {
|
||||||
// Try to get a passphrase for seshat.
|
// Try to get a passphrase for seshat.
|
||||||
const passphraseKey = `seshat|${userId}|${deviceId}`;
|
|
||||||
const storedPassphrase = await keytar.getPassword("element.io", passphraseKey);
|
const storedPassphrase = await keytar.getPassword("element.io", passphraseKey);
|
||||||
|
|
||||||
// If no passphrase was found mark that we should change
|
// If no passphrase was found mark that we should change
|
||||||
@@ -564,7 +564,7 @@ ipcMain.on('seshat', async function(ev, payload) {
|
|||||||
throw (e);
|
throw (e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
eventIndex = await openSeshat();
|
eventIndex = await openSeshat();
|
||||||
|
|||||||
Reference in New Issue
Block a user