Sending a message

Is there a way to send a message to a user’'s nickname instead of the full XMPP name, in a situation where the nickname is known, but the full name might not be known.

For example: user has user on their roster with ‘‘yyy’’ as their nickname.

Can the user xxx send a message to the nickname ‘‘yyy’’ instead of

The only way I can see around this is to iterate through user xxx’'s roster entries and find the user nickname ‘‘yyy’’ and then send the message to the user with the full XMPP name.


No, you always need to use the full address in order to send a message. It’‘s possible that some servers may assume that a non-full address would refer to a user on the local server (like email servers do), but I’‘m not sure if that’'s proper behavior.