mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[mob][photos] Show name of contact instead of email in file info of an incoming shared photo if the contact it assinged to a person
This commit is contained in:
parent
fb63e66abb
commit
8370cf44b5
@ -1,4 +1,5 @@
|
||||
import "package:flutter/material.dart";
|
||||
import "package:photos/extensions/user_extension.dart";
|
||||
import "package:photos/generated/l10n.dart";
|
||||
import "package:photos/models/file/extensions/file_props.dart";
|
||||
import 'package:photos/models/file/file.dart';
|
||||
@ -26,7 +27,7 @@ class AddedByWidget extends StatelessWidget {
|
||||
} else {
|
||||
final fileOwner = CollectionsService.instance
|
||||
.getFileOwner(file.ownerID!, file.collectionID);
|
||||
addedBy = fileOwner.email;
|
||||
addedBy = fileOwner.displayName ?? fileOwner.email;
|
||||
}
|
||||
if (addedBy == null || addedBy.isEmpty) {
|
||||
return const SizedBox.shrink();
|
||||
|
Loading…
x
Reference in New Issue
Block a user