return `null` for empty username hash in AccountIdentityResponse

This commit is contained in:
Jonathan Klabunde Tomer 2023-09-27 10:58:04 -07:00 committed by GitHub
parent 8d1135a2a3
commit aaba95f9b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ public class AccountController {
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());
}