chore: use-ndk #283

Merged
s merged 18 commits from use-ndk into staging 2025-01-06 11:10:49 +00:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit 48f85f54c8 - Show all commits

View File

@ -26,7 +26,7 @@ export const Counterpart = React.memo(
return (
<div className={styles.counterpartSelectValue}>
<AvatarIconButton
src={profile.image}
src={profile?.image}
hexKey={signer.pubkey || undefined}
sx={{
padding: 0,

View File

@ -472,7 +472,12 @@ export const useNDK = () => {
const ndkRelayList = await getNDKRelayList(receiver)
const readRelayUrls = [...ndkRelayList.readRelayUrls]
const readRelayUrls: string[] = []
if (ndkRelayList?.readRelayUrls) {
readRelayUrls.push(...ndkRelayList.readRelayUrls)
}
if (!readRelayUrls.includes(SIGIT_RELAY)) {
readRelayUrls.push(SIGIT_RELAY)
}