# How to reset chat data when disconnect call?

**URL:** <https://openvidu.discourse.group/t/how-to-reset-chat-data-when-disconnect-call/3897>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [April 18, 2022, 9:58am UTC](https://openvidu.discourse.group/t/how-to-reset-chat-data-when-disconnect-call/3897 "2022-04-18T09:58:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![draji](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/draji/32/2198_2.png) [@draji](https://openvidu.discourse.group/u/draji)\
**Post date:** [April 18, 2022, 9:58am UTC](https://openvidu.discourse.group/t/how-to-reset-chat-data-when-disconnect-call/3897/1 "2022-04-18T09:58:22Z")

</div>

HI,

I’m using insecure library angular for front-end work. It seems to be working fine Except switch camera and chat option.

When I connect the call, the chat is working. But if I disconnect call & rejoin another session without page refresh, the Old session’s chat message exists in the new session. This same issue occurred in Openvidu demo site too. I want to reset chat data when connecting to another session. How to overcome this issue?
