Skip to content

Commit

Permalink
return null for empty username hash in AccountIdentityResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
jkt-signal authored Sep 27, 2023
1 parent 8d1135a commit aaba95f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ private AccountIdentityResponse buildAccountIdentityResponse(AccountAndAuthentic
return new AccountIdentityResponse(auth.getAccount().getUuid(),
auth.getAccount().getNumber(),
auth.getAccount().getPhoneNumberIdentifier(),
auth.getAccount().getUsernameHash().orElse(null),
auth.getAccount().getUsernameHash().filter(h -> h.length > 0).orElse(null),
auth.getAccount().isStorageSupported());
}

Expand Down

0 comments on commit aaba95f

Please sign in to comment.