diff --git a/lib/ui/sharing/album_participants_page.dart b/lib/ui/sharing/album_participants_page.dart index 357cd4577..0f3aae373 100644 --- a/lib/ui/sharing/album_participants_page.dart +++ b/lib/ui/sharing/album_participants_page.dart @@ -102,7 +102,7 @@ class _AlbumParticipantsPageState extends State { title: isOwner ? "You" : widget.collection.owner?.email ?? '', - makeTextBold: true, + makeTextBold: isOwner, ), leadingIconWidget: UserAvatarWidget( owner, @@ -135,16 +135,22 @@ class _AlbumParticipantsPageState extends State { } else if (index > 0 && index <= collaborators.length) { final listIndex = index - 1; final currentUser = collaborators[listIndex]; + final isSameAsLoggedInUser = + currentUserID == currentUser.id; return Column( children: [ MenuItemWidget( captionedTextWidget: CaptionedTextWidget( - title: currentUser.email, + title: isSameAsLoggedInUser + ? "You" + : currentUser.email, + makeTextBold: isSameAsLoggedInUser, ), leadingIconSize: 24.0, leadingIconWidget: UserAvatarWidget( currentUser, type: AvatarType.mini, + currentUserID: currentUserID, ), menuItemColor: getEnteColorScheme(context).fillFaint, pressedColor: getEnteColorScheme(context).fillFaint, @@ -201,16 +207,22 @@ class _AlbumParticipantsPageState extends State { } else if (index > 0 && index <= viewers.length) { final listIndex = index - 1; final currentUser = viewers[listIndex]; + final isSameAsLoggedInUser = + currentUserID == currentUser.id; return Column( children: [ MenuItemWidget( captionedTextWidget: CaptionedTextWidget( - title: currentUser.email, + title: isSameAsLoggedInUser + ? "You" + : currentUser.email, + makeTextBold: isSameAsLoggedInUser, ), leadingIconSize: 24.0, leadingIconWidget: UserAvatarWidget( currentUser, type: AvatarType.mini, + currentUserID: currentUserID, ), menuItemColor: getEnteColorScheme(context).fillFaint, pressedColor: getEnteColorScheme(context).fillFaint,