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:
thePR0M3TH3AN authored and GitHub committed 2026-01-28 16:58:14 -05:00
commit 802f242483
1 file changed
+3 -3
+3 -3
View File
@@ -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;
}