1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 03:27:59 +01:00

Use correct field in ServiceDiscoveryManager.getIdentities()

Fixes SMACK-863.
This commit is contained in:
Florian Schmaus 2019-04-09 12:14:12 +02:00
parent 9be498c440
commit 9ad162af6e

View file

@ -1,6 +1,6 @@
/**
*
* Copyright 2003-2007 Jive Software, 2018 Florian Schmaus.
* Copyright 2003-2007 Jive Software, 2018-2019 Florian Schmaus.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -271,8 +271,8 @@ public final class ServiceDiscoveryManager extends Manager {
*/
public Set<DiscoverInfo.Identity> getIdentities() {
Set<Identity> res = new HashSet<>(identities);
// Add the default identity that must exist
res.add(defaultIdentity);
// Add the main identity that must exist
res.add(identity);
return Collections.unmodifiableSet(res);
}