Modify the Contact Initialization Logic on Chat As of Sharing Email Address is Enabled
As we've enabled the contact email address sharing now, we've added a custom Contact Type field to differ. For example, there'll be such 2 contacts in system as below,
|Contact Type||Email Addr||login|
|Client||[email protected]||[email protected]|
For the prospect one, he doesn't have the login. When the prospect contact launched the live chat without login, the system should find the contact via both Contact Email address and Contact Type (Prospect).
Currently, my research result is that the first name, last name and email address are dealed in the standard widget ChatServerConnect. Within its logic.js, there's a method