refactor(UserStore): remove isMuted function

This commit is contained in:
P. Reis 2024-05-10 18:18:55 -03:00
parent 3970bb81f7
commit 4fdf15761c
1 changed files with 0 additions and 5 deletions

View File

@ -30,11 +30,6 @@ export class UserStore implements NStore {
}); });
} }
async isMuted(pubkey: string): Promise<boolean> {
const mutedPubkeys = await this.getMutedPubkeys();
return mutedPubkeys.has(pubkey);
}
private async getMuteList(): Promise<DittoEvent | undefined> { private async getMuteList(): Promise<DittoEvent | undefined> {
const [muteList] = await this.store.query([{ authors: [this.pubkey], kinds: [10000], limit: 1 }]); const [muteList] = await this.store.query([{ authors: [this.pubkey], kinds: [10000], limit: 1 }]);
return muteList; return muteList;