Menu

Remove a buddy

Help
2008-10-14
2013-04-29
  • Rino Raimato

    Rino Raimato - 2008-10-14

    Hi,
    I have a problem, using the API I want to delete a Buddy, I'm using removeFriend Method, but after deletetion if I use a normal MSN client I found deleted accounts in to the blocked list, also if I don't block the user, is it normal? Thanks for your attention

     
    • Alex Perez

      Alex Perez - 2008-10-15

      You never trully remove a user from the MSN list, its moved from FL / AL to RL and the blocked list (BL) if instructed.

      In theory if you removeFriend(contact, false) it should not put it into the blocked list:

      From SimpleMessenger:
          public void removeFriend(Email email, boolean block) {
              if (email == null)
                  return;
              MsnContact contact = getContactList().getContactByEmail(email);
              if (contact != null) {
                  removeFriend(MsnList.FL, email, contact.getId(), null);
                  if (block) {
                      blockFriend(email);
                  }  
              }  
          }

      Alex

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.