I can programmatically add/remove a user's contact list like below code.

Last post 07-28-2009, 2:06 AM by pbwbart. 2 replies.
Sort Posts: Previous Next
  •  03-28-2009, 12:57 PM 50411

    I can programmatically add/remove a user's contact list like below code.

    Hello,
     
    I can programmatically add/remove a contact like below code. It also update CuteChat User table Buildincontacts column.  
    I've tried :
    CuteChat.ChatIdentity identity =new CuteChat.AppChatIdentity("Adam", false, "User:Adam", Request.UserHostAddress);
    CuteChat.ChatSystem.Instance.GetCurrentPortal().DataManager.AddContact(identity, "User:John");
     
    John has added in Adam's contact list. In CuteChat User table;
    UserId: User:Adam
    Buildincontacts: arr,S-1=9=User:John;
     
    Thank you.
  •  04-20-2009, 6:42 AM 51260 in reply to 50411

    Re: I can programmatically add/remove a user's contact list like below code.

    hi
     
    i use this code into my another application which is out site cute chat application and it work fine and update contact list of CuteChat4_User-->BuildinContacts column into database.
     
    but if i am changing contact list for user 'A' and user is login into cute chat messanger the he is not directly see that newly added contcat into his messenger,to see newly added contact user have to refesh page but here it create big problem for me.
     
    when user update his messenger means "NewMessenger.aspx" page then messenger does not get new contact from database (CuteChat4_User-->BuildinContacts) instead of it it overwrite Messenger contact (old contact list) into database.
     
    this database contact  overwrite is happen also when user click on "Close" button of Messenger and when user singout from messanger ("NewMessenger.aspx").
     
    can you plz tell me how to stop database overwrite when page is refesh or when "Close" button is press by users.
     
       
     
  •  07-28-2009, 2:06 AM 54326 in reply to 51260

    Re: I can programmatically add/remove a user's contact list like below code.

    did you found anything?
    This is exactly the part i'm struggling with right now
View as RSS news feed in XML