return null for empty username hash in AccountIdentityResponse

This commit is contained in:
Jonathan Klabunde Tomer authored and GitHub committed 2023-09-27 10:58:04 -07:00
1 parent 8d1135a2a3
commit aaba95f9b8
1 file changed
+1 -1
@@ -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());
}