parent
3aed470a87
commit
71267ec333
|
@ -114,7 +114,7 @@ public class KeysControllerV2 extends KeysController {
|
||||||
|
|
||||||
if (targetKeys.isPresent()) {
|
if (targetKeys.isPresent()) {
|
||||||
for (KeyRecord keyRecord : targetKeys.get()) {
|
for (KeyRecord keyRecord : targetKeys.get()) {
|
||||||
if (keyRecord.getDeviceId() == device.getId()) {
|
if (!keyRecord.isLastResort() && keyRecord.getDeviceId() == device.getId()) {
|
||||||
preKey = new PreKeyV2(keyRecord.getKeyId(), keyRecord.getPublicKey());
|
preKey = new PreKeyV2(keyRecord.getKeyId(), keyRecord.getPublicKey());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue