refactor: dont get user relays
This commit is contained in:
@ -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]);
|
||||
|
||||
|
Reference in New Issue
Block a user