mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-27 00:32:07 +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:
parent
e45c4a6805
commit
1ce8a33af4
1 changed files with 5 additions and 0 deletions
|
@ -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();) {
|
||||
|
|
Loading…
Reference in a new issue