Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Resolve all ENS names
Alexis Sellier committed 4 years ago
commit b4ea063038440facca1f1aefaf5541b357400599
parent 3bbd17365e15128d1233ddb2f5858e4b9c6d3db4
2 files changed +4 -5
modified src/base/orgs/View.svelte
@@ -224,7 +224,7 @@
                    <div class="member-icon">
                      <Avatar source={profile.avatar ?? address} />
                    </div>
-
                    <Address {address} compact resolve noAvatar {config} />
+
                    <Address {address} compact resolve noAvatar {profile} {config} />
                  </div>
                {/await}
              {/each}
modified src/utils.ts
@@ -231,7 +231,6 @@ export async function resolveLabel(label: string | undefined, config: Config): P
  return null;
}

-

// Resolves an IDX profile or return null
export async function resolveIdxProfile(caip10: string, config: Config): Promise<BasicProfile | null> {
  return config.idx.client.get<BasicProfile>("basicProfile", caip10);
@@ -239,9 +238,9 @@ export async function resolveIdxProfile(caip10: string, config: Config): Promise

// Resolves an ENS profile or return null
export async function resolveEnsProfile(address: string, config: Config): Promise<Registration | null> {
-
  const label = await config.provider.lookupAddress(address);
-
  if (label && await resolveLabel(parseEnsLabel(label, config), config)) {
-
    return await getRegistration(label, config);
+
  const name = await config.provider.lookupAddress(address);
+
  if (name) {
+
    return await getRegistration(name, config);
  }
  return null;
}