-
-
+
diff --git a/src/app/service/ndkprovider.service.ts b/src/app/service/ndkprovider.service.ts
index 1b19af9..88f5e58 100644
--- a/src/app/service/ndkprovider.service.ts
+++ b/src/app/service/ndkprovider.service.ts
@@ -130,6 +130,7 @@ export class NdkproviderService {
private async startWithUnauthSession() {
+ this.loginCompleteEmitter.emit(false);
this.loggingIn = true;
this.canWriteToNostr = false;
this.isTryingZapddit = true;
@@ -158,6 +159,7 @@ export class NdkproviderService {
attemptLoginUsingPrivateOrPubKey(enteredKey: string) {
try {
+ this.loginCompleteEmitter.emit(false);
this.loggingIn = true;
this.loginError = undefined;
const hexPrivateKey = this.validateAndGetHexKey(enteredKey);
@@ -417,22 +419,20 @@ export class NdkproviderService {
this.ndk = newNDK;
this.loggingIn = false;
//once all setup is done, then only set loggedIn=true to start rendering
- this.loggedIn = true;
- this.loginCompleteEmitter.emit(true);
-
- this.fetchFollowersFromCache();
- this.fetchMutedUsersFromCache();
- this.checkIfNIP05Verified(this.currentUserProfile?.nip05, this.currentUser?.pubkey);
- this.loadCommunitiesToCache();
-
+ this.startRendering();
});
-
-
})
.catch(e => console.log("come on.. ndk not loaded"));
} catch (e) {
console.log('Error in connecting NDK ' + e);
}
+ } else {
+ this.refreshAppData().then(() => {
+ console.log('refreshed app data')
+ this.loggingIn = false;
+ //once all setup is done, then only set loggedIn=true to start rendering
+ this.startRendering();
+ });
}
}
@@ -492,6 +492,16 @@ export class NdkproviderService {
return ndkEvent;
}
+ private startRendering() {
+ this.loggedIn = true;
+ this.loginCompleteEmitter.emit(true);
+
+ this.fetchFollowersFromCache();
+ this.fetchMutedUsersFromCache();
+ this.checkIfNIP05Verified(this.currentUserProfile?.nip05, this.currentUser?.pubkey);
+ this.loadCommunitiesToCache();
+ }
+
async updateRelays(relays: Relay[]): Promise {
let tags: NDKTag[] = [];
const ndkEvent = new NDKEvent(this.ndk);
diff --git a/src/styles.scss b/src/styles.scss
index 3f6515d..baafdf3 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -57,7 +57,11 @@ html{
}
.giant-text-in-select{
- font-size:25px!important;
+ font-size: x-large!important;
+}
+
+.select-feed-type {
+ background-color: transparent!important;
}
.note-image {