aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nip51.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/nip51.ts')
-rw-r--r--src/lib/nip51.ts10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/nip51.ts b/src/lib/nip51.ts
index 7560dd3d..05de1947 100644
--- a/src/lib/nip51.ts
+++ b/src/lib/nip51.ts
@@ -57,17 +57,11 @@ const getMuteLists = async (user: any): Promise<any> => {
return {
shown: listEvents[0].tags,
hidden:
- listEvents[0].content == ""
- ? []
- : await decrypt(listEvents[0].content, user, user.pubkey),
+ listEvents[0].content == "" ? [] : await decrypt(listEvents[0].content, user, user.pubkey),
};
};
-const publishMuteList = async (
- user: any,
- shown: string[],
- hidden: string[],
-) => {
+const publishMuteList = async (user: any, shown: string[], hidden: string[]) => {
const event = await signEvent(
{
kind: 10000,