manage messenger contact list from database

Last post 06-06-2008, 10:20 AM by greg0rym. 1 replies.
Sort Posts: Previous Next
  •  06-05-2008, 10:51 AM 41168

    manage messenger contact list from database

    hi

    I would like to manage my users contact lists (in messenger) from the database rather than have users add, remove and block contacts from within messenger.

    I have removed all of the options in messenger to add, remove and block contacts, but when I modify the buildInContacts field in the sql table CuteChat4_User, the field is overwritten when I start using messenger.
     
    How can I add contacts to a users contact list without using messenger?
     
    many thanks
     
    Greg
     
  •  06-06-2008, 10:20 AM 41205 in reply to 41168

    Re: manage messenger contact list from database

    ok I think I have found out how to do this
     

    public override IChatUserInfo[] GetContacts(ChatIdentity identity)

    {

    string myname = ChatProvider.Instance.FromUserId(identity.UniqueId);

    string[] friends = new string[] { "mark", "geoff", "peter" };

    IChatUserInfo[] arr = new IChatUserInfo[friends.Length];

    for (int i = 0; i < friends.Length; i++)

    {

    string friendid = ChatProvider.Instance.ToUserId(friendsIdea);

    arrIdea = base.GetUserInfo(friendid);

    }

    return arr;

    }

View as RSS news feed in XML