Fix infinite identity key storage service clash.

This commit is contained in:
Clark
2023-12-04 16:18:56 -05:00
committed by Cody Henthorne
parent 74619f6f8d
commit 420e15c179
@@ -184,7 +184,8 @@ public class ContactRecordProcessor extends DefaultStorageRecordProcessor<Signal
byte[] identityKey;
if ((remote.getIdentityState() != local.getIdentityState() && remote.getIdentityKey().isPresent()) ||
(remote.getIdentityKey().isPresent() && local.getIdentityKey().isEmpty()))
(remote.getIdentityKey().isPresent() && local.getIdentityKey().isEmpty()) ||
(remote.getIdentityKey().isPresent() && local.getUnregisteredTimestamp() > 0))
{
identityState = remote.getIdentityState();
identityKey = remote.getIdentityKey().get();