Gajim does not use XEP-0172 (User Nickname) element in messages from entities not in roster
When receiving the following stanza…
<message type="chat" from="178220800@telegram.localhost/slidge" id="4731174912" to="test@localhost">
<body>Good news, no limits are currently applied to your account. You’re free as a bird!</body>
<active xmlns="http://jabber.org/protocol/chatstates" />
<markable xmlns="urn:xmpp:chat-markers:0" />
<store xmlns="urn:xmpp:hints" />
<!-- interesting part just below -->
<nick xmlns="http://jabber.org/protocol/nick">SpamBot</nick>
</message>
…which corresponds to the use case described in 4.2 Message Exchange, gajim does not use the <nick>
element and display the local part of the JID as the "chat title" in the UI.
It would be nice to use this "nick" element, when the user is not in the roster. This is useful for:
- bridges (obviously), where local parts are usually ugly integers
- quicksy contacts (maybe? not sure the
<nick>
element is included, but it should be…) that have a "phone number" local part, which is not very easy to identify