react-chat-widget icon indicating copy to clipboard operation
react-chat-widget copied to clipboard

What is optional parameter Id in the method addResponseMessage and addUserMessage meant to do?

Open Nahdus opened this issue 4 years ago • 2 comments

Passing optional parameter id string doesn't seem to create an id or any noticeable effect on inspection. Am I missing something?

Nahdus avatar Jun 23 '20 07:06 Nahdus

In general the documentation seems rather poor for someone to be able to understand the full range of customization @mcallegari10

KartikChugh avatar Jun 23 '20 15:06 KartikChugh

@Nahdus you can add the optional ID and keep count of each message as an index. Then when you want to use deleteMessage(index) you can properly remove the correct item.

aknewcomp avatar Jun 29 '20 16:06 aknewcomp