refactor: dont get user relays

This commit is contained in:
2023-07-31 18:27:17 +02:00
parent ec82f9946f
commit ef44a80121
2 changed files with 2 additions and 27 deletions

View File

@ -37,13 +37,7 @@ export function useLoginEvents(pubkey?: string, leaveOpen = false) {
})
.withFilter()
.authors([pubkey])
.kinds([
EventKind.ContactList,
EventKind.Relays,
MUTED,
USER_EMOJIS,
USER_CARDS,
]);
.kinds([EventKind.ContactList, MUTED, USER_EMOJIS, USER_CARDS]);
return b;
}, [pubkey, leaveOpen]);
@ -70,9 +64,6 @@ export function useLoginEvents(pubkey?: string, leaveOpen = false) {
if (ev?.kind === EventKind.ContactList) {
Login.setFollows(ev.tags, ev.content, ev.created_at);
}
if (ev?.kind === EventKind.Relays) {
Login.setRelays(ev.tags, ev.created_at);
}
}
}, [data]);