phase out legacy support for last resort

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-02-26 16:27:12 -08:00
parent 3aed470a87
commit 71267ec333
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public class KeysControllerV2 extends KeysController {
if (targetKeys.isPresent()) {
for (KeyRecord keyRecord : targetKeys.get()) {
if (keyRecord.getDeviceId() == device.getId()) {
if (!keyRecord.isLastResort() && keyRecord.getDeviceId() == device.getId()) {
preKey = new PreKeyV2(keyRecord.getKeyId(), keyRecord.getPublicKey());
}
}