OOPS!!!!!!!!!!!!!!!!!!
js code:
var oEmails = [
'email1@hotmail.com',
'email2@hotmail.com'
];
function OnEvent_ChatWndReceiveMessage (pChatWnd, sOrigin, sMessage, nMessageKind) {
for (var oEmail in oEmails) {
>>> if (pChatWnd.Contacts.GetContact(oEmails[oEmail]) && pChatWnd.Contacts.Count === 1) {<<<
return '';
}
}
}
By using oEmail alone it is returning the position in the Array (in other words 0). Need to use oEmails[oEmail] to get the email address from the array.