π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Revert "Use userID for avatar color selection to match web"
ashilkn777eb300bbfa
diff --git a/mobile/apps/photos/lib/ui/sharing/user_avator_widget.dart b/mobile/apps/photos/lib/ui/sharing/user_avator_widget.dartindex 8769c7822f..26cf06b1f2 100644--- a/mobile/apps/photos/lib/ui/sharing/user_avator_widget.dart+++ b/mobile/apps/photos/lib/ui/sharing/user_avator_widget.dart@@ -212,9 +212,8 @@ class _FirstLetterCircularAvatarStateif (widget.user.email == Configuration.instance.getEmail()) {decorationColor = Colors.black;} else {- decorationColor = colorScheme.avatarColors[- (widget.user.id?.abs() ?? widget.user.email.length)- .remainder(colorScheme.avatarColors.length)];+ decorationColor = colorScheme.avatarColors[(widget.user.email.length)+ .remainder(colorScheme.avatarColors.length)];}final avatarStyle = getAvatarStyle(context, widget.type);@@ -325,8 +324,7 @@ class _FirstLetterUserAvatarState extends State<FirstLetterUserAvatar> {decorationColor = Colors.black;} else {decorationColor = colorScheme.avatarColors[- (user.id?.abs() ?? user.email.length)- .remainder(colorScheme.avatarColors.length)];+ (user.email.length).remainder(colorScheme.avatarColors.length)];}return Container(color: decorationColor,