mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #1908 from PR0M3TH3AN/codex/update-ensureloaded-to-verify-pubkey
Fix ensureLoaded guard to check active pubkey after normalization
This commit is contained in:
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