Bandyer / Bandyer-Chat-Widget

Bandyer Chat Widget
Other
13 stars 2 forks source link

sdk error on user accept #2

Open acasolla opened 4 years ago

acasolla commented 4 years ago

When an user accept an interaction, the requester user randomly gets the following error :

` breadcrumbs.ts:103 TypeError: Cannot read property 'get' of undefined at i.getParticipantsName (CallComponent.js:208) at i.value (CallComponent.js:537) at Su (react-dom.production.min.js:182) at wu (react-dom.production.min.js:181) at ts (react-dom.production.min.js:263) at qs (react-dom.production.min.js:246) at Ys (react-dom.production.min.js:246) at Bs (react-dom.production.min.js:239)

` Following the code from the requester

` Client = await BandyerChat.create({ userAlias: 'agent', appId: 'xxx', environment: 'sandbox', hidden: true, mode : "embed" });

BandyerChat.createCall(['guest', {'call_type':'audio_video'}); `

dalda95 commented 4 years ago

We have figured out a bug on createCall to a user not in chat list, we have tried to solve this issue in 1.31.4, please let me know if the fix cover your use case.

Thank you for the report

acasolla commented 4 years ago

I have switched to the version 1.31.4, and now the caller can accept the call succesfully. Thx for the support ;)