mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
SMACK-459 actually add the defaultIdentity to the result of getIdentities()
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13796 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
addf9ea6cd
commit
6fa2cbee68
1 changed files with 4 additions and 1 deletions
|
@ -187,7 +187,10 @@ public class ServiceDiscoveryManager {
|
|||
* @return
|
||||
*/
|
||||
public Set<DiscoverInfo.Identity> getIdentities() {
|
||||
return Collections.unmodifiableSet(identities);
|
||||
Set<Identity> res = new HashSet<Identity>(identities);
|
||||
// Add the default identity that must exist
|
||||
res.add(defaultIdentity);
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue