# chat.getHistory is not a function

**URL:** <https://devforum.zoom.us/t/chat-gethistory-is-not-a-function/61230>\
**Category:** Web\
**Created:** [December 9, 2021, 2:05am UTC](https://devforum.zoom.us/t/chat-gethistory-is-not-a-function/61230 "2021-12-09T02:05:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![k-build](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/k-build/32/29423_2.png) [@k-build](https://devforum.zoom.us/u/k-build)\
**Post date:** [December 9, 2021, 2:05am UTC](https://devforum.zoom.us/t/chat-gethistory-is-not-a-function/61230/1 "2021-12-09T02:05:20Z")

</div>

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

```auto
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.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 9, 2021, 10:52pm UTC](https://devforum.zoom.us/t/chat-gethistory-is-not-a-function/61230/2 "2021-12-09T22:52:28Z")

</div>

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

Do you have this step?

`client.getFeatureModule('chat')`

 ![Screen Shot 2021-12-09 at 3.51.31 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/a/2a2b2a763dc55c572a725cf2973bffdb587a6eb8.png)

[https://marketplacefront.zoom.us/sdk/custom/web/modules/chatclient.html](https://marketplacefront.zoom.us/sdk/custom/web/modules/chatclient.html)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![k-build](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/k-build/32/29423_2.png) [@k-build](https://devforum.zoom.us/u/k-build)\
**Post date:** [December 10, 2021, 1:20am UTC](https://devforum.zoom.us/t/chat-gethistory-is-not-a-function/61230/3 "2021-12-10T01:20:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 10, 2021, 5:31pm UTC](https://devforum.zoom.us/t/chat-gethistory-is-not-a-function/61230/4 "2021-12-10T17:31:09Z")

</div>

Hey @k-build ,

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

Thanks for your patience! 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 10, 2022, 3:31am UTC](https://devforum.zoom.us/t/chat-gethistory-is-not-a-function/61230/5 "2022-01-10T03:31:31Z")

</div>

Closed on January 10, 2022, 3:31am UTC

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