session-desktop/ts/shims/Signal.ts

7 lines
133 B
TypeScript

export async function hasPassword() {
// @ts-ignore
const hash = await window.Signal.Data.getPasswordHash();
return !!hash;
}