mirror of
https://github.com/ente-io/ente.git
synced 2025-07-25 11:05:15 +00:00
[mob][photos] Return null deprecated name field is empty on User.displayName
This commit is contained in:
parent
8370cf44b5
commit
a1b0e82d56
@ -4,5 +4,6 @@ import "package:photos/services/machine_learning/face_ml/person/person_service.d
|
||||
extension UserExtension on User {
|
||||
//Some initial users have name in name field.
|
||||
String? get displayName =>
|
||||
PersonService.instance.emailToNameMapCache[email] ?? name;
|
||||
PersonService.instance.emailToNameMapCache[email] ??
|
||||
((name?.isEmpty ?? true) ? null : name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user