mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 10:28:03 +01:00
Tracks send state for edited messages
This commit is contained in:
@@ -11,10 +11,10 @@ let activeJobCount = 0;
|
||||
let resolveShutdown: (() => void) | undefined;
|
||||
let shutdownPromise: Promise<void> | null = null;
|
||||
|
||||
export async function ipcInvoke(
|
||||
export async function ipcInvoke<T>(
|
||||
name: string,
|
||||
args: ReadonlyArray<unknown>
|
||||
): Promise<void> {
|
||||
): Promise<T> {
|
||||
const fnName = String(name);
|
||||
|
||||
if (shutdownPromise && name !== 'close') {
|
||||
|
||||
Reference in New Issue
Block a user