1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-23 02:58:00 +01:00

Answers the client identity for a disco info request. SMACK-149

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2348 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-08-04 19:53:39 +00:00 committed by gdombiak
parent e45c4a6805
commit 1ce8a33af4

View file

@ -169,6 +169,11 @@ public class ServiceDiscoveryManager {
response.setType(IQ.Type.RESULT);
response.setTo(discoverInfo.getFrom());
response.setPacketID(discoverInfo.getPacketID());
// Set this client identity
DiscoverInfo.Identity identity = new DiscoverInfo.Identity("client",
SmackConfiguration.getIdentityName());
identity.setType(SmackConfiguration.getIdentityType());
response.addIdentity(identity);
// Add the registered features to the response
synchronized (features) {
for (Iterator it = getFeatures(); it.hasNext();) {