Merge pull request #121 from luminous-devs/fix/nsecbunker

Fix stuck issue for connect with nsecbunker
This commit is contained in:
Ren Amamiya 2023-11-24 13:53:26 +07:00 committed by GitHub
commit 065ccbbea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ export function ImportAccountScreen() {
await db.secureSave(pubkey + '-bunker', localSigner.privateKey); await db.secureSave(pubkey + '-bunker', localSigner.privateKey);
const remoteSigner = new NDKNip46Signer(ndk, npub, localSigner); const remoteSigner = new NDKNip46Signer(ndk, npub, localSigner);
await remoteSigner.blockUntilReady(); // await remoteSigner.blockUntilReady();
ndk.signer = remoteSigner; ndk.signer = remoteSigner;
@ -259,8 +259,8 @@ export function ImportAccountScreen() {
{db.platform === 'macos' {db.platform === 'macos'
? 'Apple Keychain (macOS)' ? 'Apple Keychain (macOS)'
: db.platform === 'windows' : db.platform === 'windows'
? 'Credential Manager (Windows)' ? 'Credential Manager (Windows)'
: 'Secret Service (Linux)'} : 'Secret Service (Linux)'}
</b> </b>
, it will be secured by your OS , it will be secured by your OS
</p> </p>

View File

@ -71,7 +71,7 @@ export const NDKInstance = () => {
if (localSignerPrivkey) { if (localSignerPrivkey) {
const localSigner = new NDKPrivateKeySigner(localSignerPrivkey); const localSigner = new NDKPrivateKeySigner(localSignerPrivkey);
const remoteSigner = new NDKNip46Signer(instance, db.account.id, localSigner); const remoteSigner = new NDKNip46Signer(instance, db.account.id, localSigner);
await remoteSigner.blockUntilReady(); // await remoteSigner.blockUntilReady();
return remoteSigner; return remoteSigner;
} }