From 74738c36cd8a72debf6be5ad9b23fd7c8776ef92 Mon Sep 17 00:00:00 2001 From: reya Date: Thu, 23 Nov 2023 15:12:46 +0700 Subject: [PATCH] disable blockUntilReady --- src/app/auth/import.tsx | 6 +++--- src/libs/ndk/instance.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/auth/import.tsx b/src/app/auth/import.tsx index a1da4b5b..a438950e 100644 --- a/src/app/auth/import.tsx +++ b/src/app/auth/import.tsx @@ -47,7 +47,7 @@ export function ImportAccountScreen() { await db.secureSave(pubkey + '-bunker', localSigner.privateKey); const remoteSigner = new NDKNip46Signer(ndk, npub, localSigner); - await remoteSigner.blockUntilReady(); + // await remoteSigner.blockUntilReady(); ndk.signer = remoteSigner; @@ -259,8 +259,8 @@ export function ImportAccountScreen() { {db.platform === 'macos' ? 'Apple Keychain (macOS)' : db.platform === 'windows' - ? 'Credential Manager (Windows)' - : 'Secret Service (Linux)'} + ? 'Credential Manager (Windows)' + : 'Secret Service (Linux)'} , it will be secured by your OS

diff --git a/src/libs/ndk/instance.ts b/src/libs/ndk/instance.ts index c8e5c70c..c91b4955 100644 --- a/src/libs/ndk/instance.ts +++ b/src/libs/ndk/instance.ts @@ -71,7 +71,7 @@ export const NDKInstance = () => { if (localSignerPrivkey) { const localSigner = new NDKPrivateKeySigner(localSignerPrivkey); const remoteSigner = new NDKNip46Signer(instance, db.account.id, localSigner); - await remoteSigner.blockUntilReady(); + // await remoteSigner.blockUntilReady(); return remoteSigner; }