chat.getHistory is not a function

Description
The sendToAll function of the ChatClient object works fine.
But I couldn’t call getHistory.

let chat = zmClient.getChatClient();
const historyChatList = chat.getHistory();
console.log(historyChatList);

Browser Console Error
index.js_+14_modules:648 Uncaught TypeError: chat.getHistory is not a function
at HTMLButtonElement.onClick (index.js
+14_modules:648)
onClick @ index.js
+_14_modules:648

Which Web Video SDK version?
v1.1.6

Video SDK Code Snippets
The code snippets that are causing the error / issue so we can reproduce.

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Screenshots
If applicable, add screenshots to help explain your problem.

Device (please complete the following information):

  • Device: [e.g. Macbook Pro]
  • OS: [e.g. macOS 11]
  • Browser: [e.g. Chrome]
  • Browser Version [e.g. 88.0.4324.150 (Official Build) (x86_64)]

Additional context
Add any other context about the problem here.

Hey @k-build , thanks for posting and using Zoom!

Do you have this step?

client.getFeatureModule('chat')

https://marketplacefront.zoom.us/sdk/custom/web/modules/chatclient.html

Thanks,
Tommy

Hey @tommy ,
I was try to call getFeatureModule but I couldn’t call as well.

I’m using the client as a VideoClient instance.
What instance of client should I use to use getFeatureModule?

Thanks,
k-build

Hey @k-build ,

We found the bug and will fix it in the next release. (ZOOM-330957)

Thanks for your patience! :slight_smile:

-Tommy

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