Retrieving the name of message sending and message receiving user

Abhishek Ranjan <[email protected]> Thu, 18 May 2017 15:14:17 +0530 (IST)
Newsgroups gmane.network.jabber.devel
Message-ID <[email protected]>
Hello,

I am new to xmpp and I wanted to extract the names of the user who is sending the message and the name of the user to whom he is sending the message from the message stanza.

I have been using 

A=Packet#message.from.

which gives me the complete jid tuple(I am using erlang programming language).

Can anyone tell me how can I get just the names of the people who are sending and receiving messages from the message stanza alone.

Regards,

Abhishek

_______________________________________________
JDev mailing list
Info: https://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________