mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 12:12:06 +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.setType(IQ.Type.RESULT);
|
||||||
response.setTo(discoverInfo.getFrom());
|
response.setTo(discoverInfo.getFrom());
|
||||||
response.setPacketID(discoverInfo.getPacketID());
|
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
|
// Add the registered features to the response
|
||||||
synchronized (features) {
|
synchronized (features) {
|
||||||
for (Iterator it = getFeatures(); it.hasNext();) {
|
for (Iterator it = getFeatures(); it.hasNext();) {
|
||||||
|
|
Loading…
Reference in a new issue