kopia lustrzana https://github.com/ryukoposting/Signal-Android
Remove receiver chains that are 5 old.
rodzic
ff0dff745c
commit
842df1ac39
|
@ -230,8 +230,13 @@ public class SessionRecordV2 extends Record {
|
|||
.setSenderEphemeral(ByteString.copyFrom(senderEphemeral.serialize()))
|
||||
.build();
|
||||
|
||||
// XXX knock old chain out.
|
||||
this.sessionStructure = this.sessionStructure.toBuilder().addReceiverChains(chain).build();
|
||||
|
||||
if (this.sessionStructure.getReceiverChainsList().size() > 5) {
|
||||
this.sessionStructure = this.sessionStructure.toBuilder()
|
||||
.removeReceiverChains(0)
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
public void setSenderChain(ECKeyPair senderEphemeralPair, ChainKey chainKey) {
|
||||
|
|
Ładowanie…
Reference in New Issue