refactor(UserStore): remove isMuted function
This commit is contained in:
parent
3970bb81f7
commit
4fdf15761c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue