From 1ce8a33af4929dd164b4a6a068c469c19394f60e Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Wed, 4 Aug 2004 19:53:39 +0000 Subject: [PATCH] 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 --- source/org/jivesoftware/smackx/ServiceDiscoveryManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java b/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java index 3b69a7010..a7c108c23 100644 --- a/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java +++ b/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java @@ -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();) {