await goBackToMainProcess
in sticker-creator
This commit is contained in:
parent
be087c3498
commit
bc146a54af
5 changed files with 9 additions and 9 deletions
|
@ -12,9 +12,9 @@
|
||||||
<script type="text/javascript" src="../../ts/backbonejQuery.js"></script>
|
<script type="text/javascript" src="../../ts/backbonejQuery.js"></script>
|
||||||
<script type="text/javascript" src="../../js/storage.js"></script>
|
<script type="text/javascript" src="../../js/storage.js"></script>
|
||||||
|
|
||||||
<script type='text/javascript' src='libtextsecure/protocol_wrapper.js'></script>
|
<script type='text/javascript' src='../../libtextsecure/protocol_wrapper.js'></script>
|
||||||
<script type='text/javascript' src='libtextsecure/storage/user.js'></script>
|
<script type='text/javascript' src='../../libtextsecure/storage/user.js'></script>
|
||||||
<script type='text/javascript' src='libtextsecure/storage/unprocessed.js'></script>
|
<script type='text/javascript' src='../../libtextsecure/storage/unprocessed.js'></script>
|
||||||
<script type='text/javascript' src='libtextsecure/protobufs.js'></script>
|
<script type='text/javascript' src='../../libtextsecure/protobufs.js'></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -180,7 +180,7 @@ window.encryptAndUpload = async (
|
||||||
cover,
|
cover,
|
||||||
onProgress = noop
|
onProgress = noop
|
||||||
) => {
|
) => {
|
||||||
window.sqlInitializer.goBackToMainProcess();
|
await window.sqlInitializer.goBackToMainProcess();
|
||||||
const usernameItem = await window.Signal.Data.getItemById('uuid_id');
|
const usernameItem = await window.Signal.Data.getItemById('uuid_id');
|
||||||
const oldUsernameItem = await window.Signal.Data.getItemById('number_id');
|
const oldUsernameItem = await window.Signal.Data.getItemById('number_id');
|
||||||
const passwordItem = await window.Signal.Data.getItemById('password');
|
const passwordItem = await window.Signal.Data.getItemById('password');
|
||||||
|
|
|
@ -585,7 +585,7 @@ export type ClientInterface = DataInterface & {
|
||||||
// These are defined on the server-only and used in the client to determine
|
// 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
|
// whether we should use IPC to use the database in the main process or
|
||||||
// use the db already running in the renderer.
|
// use the db already running in the renderer.
|
||||||
goBackToMainProcess: () => void;
|
goBackToMainProcess: () => Promise<void>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ClientJobType = {
|
export type ClientJobType = {
|
||||||
|
|
|
@ -26,6 +26,6 @@ export async function initialize(isTesting = false): Promise<void> {
|
||||||
await sql.initializeRenderer({ configDir, key });
|
await sql.initializeRenderer({ configDir, key });
|
||||||
}
|
}
|
||||||
|
|
||||||
export function goBackToMainProcess(): void {
|
export async function goBackToMainProcess(): Promise<void> {
|
||||||
window.Signal.Data.goBackToMainProcess();
|
return window.Signal.Data.goBackToMainProcess();
|
||||||
}
|
}
|
||||||
|
|
2
ts/window.d.ts
vendored
2
ts/window.d.ts
vendored
|
@ -263,7 +263,7 @@ declare global {
|
||||||
updateTrayIcon: (count: number) => void;
|
updateTrayIcon: (count: number) => void;
|
||||||
sqlInitializer: {
|
sqlInitializer: {
|
||||||
initialize: () => Promise<void>;
|
initialize: () => Promise<void>;
|
||||||
goBackToMainProcess: () => void;
|
goBackToMainProcess: () => Promise<void>;
|
||||||
};
|
};
|
||||||
|
|
||||||
Backbone: typeof Backbone;
|
Backbone: typeof Backbone;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue