Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

/goto crowd doesn't work #244

Open
menduz opened this issue Mar 23, 2022 · 1 comment
Open

/goto crowd doesn't work #244

menduz opened this issue Mar 23, 2022 · 1 comment
Labels
bug Something isn't working stream-core

Comments

@menduz
Copy link
Member

menduz commented Mar 23, 2022

Since the introduction of archipelago

@menduz menduz added the bug Something isn't working label Mar 23, 2022
@menduz menduz added this to SDK Mar 23, 2022
@pbosio
Copy link
Contributor

pbosio commented Mar 28, 2022

@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
      }
    }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working stream-core
Projects
Status: No status
Development

No branches or pull requests

3 participants