mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-02 19:02:28 +00:00
Fix ensureLoaded pubkey guard
This commit is contained in:
1 parent
2a5fa3ef90
commit
10d628fe35
1 file changed
+3
-3
+3
-3
@@ -718,12 +718,12 @@ class UserBlockListManager {
|
||||
}
|
||||
|
||||
async ensureLoaded(userPubkey) {
|
||||
if (this.loaded) {
|
||||
const normalized = normalizeHex(userPubkey);
|
||||
if (!normalized) {
|
||||
return;
|
||||
}
|
||||
|
||||
const normalized = normalizeHex(userPubkey);
|
||||
if (!normalized) {
|
||||
if (this.loaded && this.activePubkey === normalized) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user