fix issue with new contacts event in relay fallback

This commit is contained in:
hzrd149
2023-03-09 09:04:45 -06:00
parent d2d318983a
commit 9acb0687ce

View File

@@ -18,7 +18,7 @@ class UserRelaysFallbackService {
}
});
subject.connectWithHandler(userContactsService.getSubject(pubkey), (contacts, next, value) => {
if (!value || contacts.created_at > value.created_at) {
if (contacts.relays.length > 0 && (!value || contacts.created_at > value.created_at)) {
next({ pubkey: contacts.pubkey, relays: contacts.relays, created_at: contacts.created_at });
}
});