The returned object on `user-added` event is of wrong type

Description
The user-added event gives the returned object as an array, rather than as JSON object.

Browser Console Error
Trying to get the user-id results in undefined since the returned object is Array rather than object.

Which Web Meeting SDK version?
2.9.7

Meeting SDK Code Snippets

zoomClient.on("user-added", async (payload) => {
      try {
        zoomClient.sendChat("hello-world", payload.userId);
      } catch (err) {
        console.error(err);
      }
    });

Hi @amalwa
Thanks for reaching out to the Zoom Developer Forum and welcome to our community!
Could you please point me toward the documentation that you are using here so I can take a closer look into this?

Cheers,
Elisa

Hi Elisa,

Here is the documentation link - https://marketplace.zoom.us/docs/sdk/native-sdks/web/component-view/reference/

Essentially what the documentation says is that the event will contain a single ParticipantPropertiesPayload, however, its an Array of ParticipantPropertiesPayload.

If you go into the documentation and navigate to on function, you will see that there is a event that customers can subscribe called - "user-added" which returns information about the user added to the meeting. The response payload is supposed to be an object but its actually an Array.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.