conversejs / converse.js

Web-based XMPP/Jabber chat client written in JavaScript
http://conversejs.org
Mozilla Public License 2.0
3.07k stars 770 forks source link

Do disco#info query and fetch VCard when user subscribes to a new JID #1361

Open jcbrand opened 5 years ago

jcbrand commented 5 years ago

When a user enters the JID of someone they'd like to add as a contact, Converse can do a disco#info query to check whether the account exists and can additionally fetch metadata such as the VCard to present to the user.

--- Want to back this issue? **[Post a bounty on it!](https://app.bountysource.com/issues/67034274-do-disco-info-query-and-fetch-vcard-when-user-subscribes-to-a-new-jid?utm_campaign=plugin&utm_content=tracker%2F194169&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://app.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F194169&utm_medium=issues&utm_source=github).
linkmauve commented 5 years ago

It’s easy to obtain public information about a user JID, but not so much to be certain it doesn’t exist.

dwd commented 5 years ago

True, the server could just provide dummy info. But in general, vCards are fairly public things, and do help a lot.

jcbrand commented 5 years ago

@linkmauve The user should still be able to add a JID, even when Converse cannot confirm existence. This is more of a UI/UX improvement.