Skip to content

Conversation

@AlexanderKanakis
Copy link
Collaborator

This fix makes sure that we retain the response from Salesforce when the Salesforce agent accepts a visitor in the short time between connecting to Salesforce and looking for an agent

@ear-dev
Copy link

ear-dev commented Feb 15, 2022

@Shailesh351 have a look please.

Comment on lines +89 to +94
let salesforceAgentName;
for (const msg of messageArray) {
if (msg.message.name) {
salesforceAgentName = msg.message.name;
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are also accessing chasitorIdleTimeout and sneakPeekEnabled from the chatEstablishedMessage. Shouldn't we also add those?

Comment on lines +46 to +48
if ((Object.keys(res).length === 0 || res !== 'undefined') && response.content === '{}') {
response = res;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why response = res; when Object.keys(res).length === 0?

Copy link
Collaborator

@Shailesh351 Shailesh351 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I tried this locally, SF Agent Name is not showing up in Livechat Widget

@ear-dev
Copy link

ear-dev commented Sep 8, 2022

@AlexanderKanakis are there any RC logging associated with this crash you are describing?
How can I reproduce this condition?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants