Menu

FriendlyName

Help
2007-06-21
2013-04-29
  • Alejandro Alliana

    Hi everybody:

      I'm trying the "example messengers" included in JML, my contacts friendly names appear out of date (the friendly names are old friendly names of the correct contact.).

      Is anybody else having this issue? 

      Thanks in advance.

    Alejandro

     
    • Daniel Henninger

      What version of the protocol are you specifying?

       
    • Alejandro Alliana

      Hi, thanks for your answer.

        If I have to be honest, before your reply all I did was try the example.  I don't know how to specify a protocol version.  I was reading the logs and I see

      INFO: aalliana@hotmail.com NS >>> VER 1 MSNP12 MSNP11 MSNP10 MSNP9 MSNP8 CVR0

      so I thought that the library was choosing the correct version on it's own.

        After your reply I went and glanced at the MsnProtocol class but I'm still clueless.

        Would you please tell me where do I set the protocol version or where can I find documentation on doing this?

        Thanks again.

      Alejandro

       
      • Daniel Henninger

        Actually that's almost more helpful  =)  (to know it's one of the examples)  Which one in particular were you working with?

        And when you say "old friendly name", what do you mean?  Is the person on the other end changing their friendly name a lot and you are seeing "the one before the most current one"?

         
    • Alejandro Alliana

      Hello:

        I'm running the "PrettyMessenger".

        Yes, by "old friendly name" I mean a _not current_ friendly name.  I'm not sure if it's "the one before" or just an old one.  It looks to me that it's not "the one before" but an really old one but I'm not sure of that.

        Thanks in advance.

      Alejandro

       
      • Daniel Henninger

        Ok bear with me a moment, I came into maintainership of JML long after it was established and I don't know it backwards and forwards like I do some of my other projects.  However, I thought getFriendlyName got you the official name of the user, and getDisplayName got you the "what name they want to display".  (like getFriendlyName is often something more formal, like Daniel Henninger, where getDisplayName might get me something like "The Jade Storm" or whatever it is I tried to set at a particular time.   I'm testing this in a moment but that's my initial thought.  I'll get back to you in a moment.

         
      • Daniel Henninger

        Ok yes, I just verified the difference.

        DisplayName is I think what you want.  DisplayName is what -they- want their name to look like.  It's changable on the fly by the other user.
        FriendlyName is what -you- want it to look like.  In other words, on your MSN buddy list, for contact xyz, you also have a "here's my own nickname for this person".  So for example if they keep changing their name to fuzzywhumpum and you want them to show up as Daniel Henninger in your list, you would set your FriendlyName for them to Daniel Henninger and ignore their DisplayName.

        Does that make sense?  Hope it helps!

         
    • Alejandro Alliana

      It absolutely does make sense.

        Thanks for your help.  DisplayName is exactly what I want, sorry for the mistake.  I assume that the friendly name is initialized to the display name the first time, that's why I was looking at old display names. 

        Thanks again

      Alejandro

       

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.