How to reset chat data when disconnect call?

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?