Re: Prepopulate Messenger Contact list

  •  10-21-2010, 9:22 PM

    Re: Prepopulate Messenger Contact list

    Hi strikingknife,
     
    The code below shows you how to add user "merry" into the contact list of user "jack"
     
      protected void btnAdd_Click(object sender, EventArgs e)
        {
            CuteChat.ChatPortal portal = CuteChat.ChatSystem.Instance.GetCurrentPortal();
            lock (portal)
            {
                CuteChat.ChatIdentity myid = new CuteChat.AppChatIdentity("nickname", false, "User:jack", "0.0.0.0");
                portal.DataManager.AddContact(myid, "User:merry");
            }
        } 
     
    Regards,
     
    Ken 
View Complete Thread