mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 18:38:15 +01:00
await goBackToMainProcess in sticker-creator
This commit is contained in:
committed by
Scott Nonnenberg
parent
be087c3498
commit
bc146a54af
@@ -585,7 +585,7 @@ export type ClientInterface = DataInterface & {
|
||||
// These are defined on the server-only and used in the client to determine
|
||||
// whether we should use IPC to use the database in the main process or
|
||||
// use the db already running in the renderer.
|
||||
goBackToMainProcess: () => void;
|
||||
goBackToMainProcess: () => Promise<void>;
|
||||
};
|
||||
|
||||
export type ClientJobType = {
|
||||
|
||||
@@ -26,6 +26,6 @@ export async function initialize(isTesting = false): Promise<void> {
|
||||
await sql.initializeRenderer({ configDir, key });
|
||||
}
|
||||
|
||||
export function goBackToMainProcess(): void {
|
||||
window.Signal.Data.goBackToMainProcess();
|
||||
export async function goBackToMainProcess(): Promise<void> {
|
||||
return window.Signal.Data.goBackToMainProcess();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user