mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Fix nodeVer generation for local caps information
This was broken with 5dd97a363c
, where
currentCapsVersion was changed from String to CapsVersionAndHash.
This commit is contained in:
parent
4c2d5d797a
commit
b3b42f3a9b
1 changed files with 1 additions and 1 deletions
|
@ -475,7 +475,7 @@ public class EntityCapsManager extends Manager {
|
||||||
sdm.addDiscoverInfoTo(discoverInfo);
|
sdm.addDiscoverInfoTo(discoverInfo);
|
||||||
|
|
||||||
currentCapsVersion = generateVerificationString(discoverInfo);
|
currentCapsVersion = generateVerificationString(discoverInfo);
|
||||||
addDiscoverInfoByNode(entityNode + '#' + currentCapsVersion, discoverInfo);
|
addDiscoverInfoByNode(entityNode + '#' + currentCapsVersion.version, discoverInfo);
|
||||||
if (lastLocalCapsVersions.size() > 10) {
|
if (lastLocalCapsVersions.size() > 10) {
|
||||||
CapsVersionAndHash oldCapsVersion = lastLocalCapsVersions.poll();
|
CapsVersionAndHash oldCapsVersion = lastLocalCapsVersions.poll();
|
||||||
sdm.removeNodeInformationProvider(entityNode + '#' + oldCapsVersion.version);
|
sdm.removeNodeInformationProvider(entityNode + '#' + oldCapsVersion.version);
|
||||||
|
|
Loading…
Reference in a new issue