quote:
Originally posted by SpunkyLoveMuff
code:
function OnEvent_ContactSignout(Email){
var Contacts = Messenger.MyContacts;
var e = new Enumerator(Contacts);
for(; !e.atEnd(); e.moveNext()) {
var Contact = e.item();
if(Contact.Email===Email){
MsgPlus.DisplayToastContact("Contact Signed Out", MsgPlus.RemoveFormatCodes(Contact.Name), "signed out");
}
}
}
That should do it
Why not use the GetContact function?
code:
function OnEvent_ContactSignout(Email){
var Contact = Messenger.MyContacts.GetContact(Email);
MsgPlus.DisplayToastContact("Contact Signed Out", MsgPlus.RemoveFormatCodes(Contact.Name), "signed out");
}
However, this doesn't display the DP in the toast either.