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

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());
}