- private DeviceContact getDeviceContact(
- final RecipientAddress address,
- final RecipientId recipientId,
- final Contact contact
- ) throws IOException {
- var currentIdentity = address.serviceId().isEmpty()
- ? null
- : account.getIdentityKeyStore().getIdentityInfo(address.serviceId().get());
- VerifiedMessage verifiedMessage = null;
- if (currentIdentity != null) {
- verifiedMessage = new VerifiedMessage(address.toSignalServiceAddress(),
- currentIdentity.getIdentityKey(),
- currentIdentity.getTrustLevel().toVerifiedState(),
- currentIdentity.getDateAddedTimestamp());
- }
-
- var profileKey = account.getProfileStore().getProfileKey(recipientId);