Fix confusing text for albums shared by you

This commit is contained in:
Ming Ming 2021-10-17 18:18:37 +08:00
parent dd93a9eb2a
commit 6a394cc93a

View file

@ -251,7 +251,9 @@ class _SharingBrowserState extends State<SharingBrowser> {
),
),
label: firstItem.album.name,
description: L10n.global().albumLastSharedByOthersDescription(
description: shares.first.share.uidOwner == widget.account.username
? L10n.global().fileLastSharedDescription(dateStr)
: L10n.global().albumLastSharedByOthersDescription(
shares.first.share.displaynameOwner, dateStr),
trailing: Icon(
Icons.photo_album_outlined,