mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-10-05 10:32:40 +00:00
Ensure EventStore is created in the appropriate userData directory (#433)
This commit is contained in:
parent
43484b21f4
commit
2032f64766
1 changed files with 3 additions and 2 deletions
|
@ -47,8 +47,6 @@ try {
|
|||
}
|
||||
}
|
||||
|
||||
const eventStorePath = path.join(app.getPath('userData'), 'EventStore');
|
||||
|
||||
let eventIndex: SeshatType | null = null;
|
||||
|
||||
const seshatDefaultPassphrase = "DEFAULT_PASSPHRASE";
|
||||
|
@ -80,6 +78,9 @@ const deleteContents = async (p: string): Promise<void> => {
|
|||
ipcMain.on('seshat', async function(_ev: IpcMainEvent, payload): Promise<void> {
|
||||
if (!global.mainWindow) return;
|
||||
|
||||
// We do this here to ensure we get the path after --profile has been resolved
|
||||
const eventStorePath = path.join(app.getPath('userData'), 'EventStore');
|
||||
|
||||
const sendError = (id, e) => {
|
||||
const error = {
|
||||
message: e.message,
|
||||
|
|
Loading…
Reference in a new issue