decentraland / kernel

Kernel is the glue code between the OS, comms and the Renderer of Decentraland
https://play.decentraland.org
Apache License 2.0
19 stars 24 forks source link

/goto crowd doesn't work #244

Open menduz opened 2 years ago

menduz commented 2 years ago

Since the introduction of archipelago

pbosio commented 2 years ago

@menduz do you recall any special scenario where it didn't work for you? I've just test it and it's working. archipelago deprecated layer but the code for /goto crowd is already contemplating an undefined layer

    if (realm.layer) {
      const layerUsersResponse = await fetch(`${commsUrl}/layers/${realm.layer}/users`)
      if (layerUsersResponse.ok) {
        const layerUsers: LayerUserInfo[] = await layerUsersResponse.json()
        return layerUsers.filter((it) => it.parcel).map((it) => it.parcel!)
      }
    } else {
      const commsStatusResponse = await fetch(`${commsUrl}/status?includeUsersParcels=true`)
      if (commsStatusResponse.ok) {
        const layerUsers = await commsStatusResponse.json()
        return layerUsers.usersParcels
      }
    }