mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 02:48:23 +01:00
Separate calls in sql channel
This commit is contained in:
@@ -9,6 +9,7 @@ import { missingCaseError } from '../util/missingCaseError';
|
||||
|
||||
const SQL_READ_KEY = 'sql-channel:read';
|
||||
const SQL_WRITE_KEY = 'sql-channel:write';
|
||||
const SQL_REMOVE_DB_KEY = 'sql-channel:remove-db';
|
||||
let activeJobCount = 0;
|
||||
let resolveShutdown: (() => void) | undefined;
|
||||
let shutdownPromise: Promise<void> | null = null;
|
||||
@@ -77,3 +78,7 @@ export async function doShutdown(): Promise<void> {
|
||||
log.info('data.shutdown: process complete');
|
||||
}
|
||||
}
|
||||
|
||||
export async function removeDB(): Promise<void> {
|
||||
return ipcRenderer.invoke(SQL_REMOVE_DB_KEY);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user