Hi Marium,
The code below to show you how to add user "macro" into the friend list of user "merry".
- CuteChat.ChatPortal portal = CuteChat.ChatSystem.Instance.GetCurrentPortal();
- lock (portal)
- {
- CuteChat.ChatIdentity myid = new CuteChat.AppChatIdentity("nickname", false, "User:merry", "0.0.0.0");
- portal.DataManager.AddContact(myid, "User:macro");
- }
Note: format "User:merry" is necessary.
Regards,
Ken