mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 13:27:59 +01:00
Align KeyTransparencySearchResponse with distinguished counterpart and update DistinguishedResponse field names
This commit is contained in:
@@ -123,10 +123,7 @@ public class KeyTransparencyController {
|
||||
KEY_TRANSPARENCY_RPC_TIMEOUT)
|
||||
.thenApply(searchResponse ->
|
||||
new KeyTransparencySearchResponse(
|
||||
searchResponse.getTreeHead().toByteArray(),
|
||||
searchResponse.getAci().toByteArray(),
|
||||
searchResponse.hasE164() ? Optional.of(searchResponse.getE164().toByteArray()) : Optional.empty(),
|
||||
searchResponse.hasUsernameHash() ? Optional.of(searchResponse.getUsernameHash().toByteArray()) : Optional.empty())
|
||||
searchResponse.toByteArray())
|
||||
).join();
|
||||
} catch (final CancellationException exception) {
|
||||
LOGGER.error("Unexpected cancellation from key transparency service", exception);
|
||||
|
||||
Reference in New Issue
Block a user