Ratchet: Use append() for keys too

This commit is contained in:
zzz
2020-04-06 14:35:03 +00:00
parent b979a97905
commit c99adeeb61

View File

@ -431,7 +431,7 @@ class RatchetTagSet implements TagSetHandle {
// if there's any gaps, catch up and store
for (int i = _lastKey + 1; i < tagnum; i++) {
//System.out.println("Fill in key gap at " + i);
_sessionKeys.put(i, consumeNextKey().getData());
_sessionKeys.append(i, consumeNextKey().getData());
}
SessionKeyAndNonce rv = consumeNextKey();
addTags(tagnum);