Reset trusted mute subscriptions on clear

This commit is contained in:
thePR0M3TH3AN committed 2026-01-09 22:42:33 -05:00
1 parent f8af3c27c1
commit 8bc39fa556
1 file changed
+3 -7
+3 -7
View File
@@ -817,12 +817,7 @@ export class ModerationService {
}
clearTrustedMuteTracking({ previousContacts = null } = {}) {
const previous =
previousContacts instanceof Set
? new Set(previousContacts)
: this.trustedContacts instanceof Set
? new Set(this.trustedContacts)
: new Set();
void previousContacts;
for (const [pubkey, entry] of this.trustedMuteSubscriptions.entries()) {
if (entry && typeof entry.unsub === "function") {
@@ -850,7 +845,8 @@ export class ModerationService {
this.emit("trusted-mutes", { total: 0 });
this.rebuildTrustedContacts(new Set(), { previous: new Set() });
const emptyPrevious = new Set();
this.rebuildTrustedContacts(new Set(), { previous: emptyPrevious });
}
isTrustedMuteOwner(pubkey) {