π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Append '(Me)' at the end of PeopleAppBar's title if the opened person is 'Me'
ashilkna34d2a9c1aad
diff --git a/mobile/lib/ui/viewer/people/people_app_bar.dart b/mobile/lib/ui/viewer/people/people_app_bar.dartindex 4de6f6da7d..ed518d6df9 100644--- a/mobile/lib/ui/viewer/people/people_app_bar.dart+++ b/mobile/lib/ui/viewer/people/people_app_bar.dart@@ -70,25 +70,38 @@ class _AppBarWidgetState extends State<PeopleAppBar> {@overridevoid initState() {super.initState();+ person = widget.person;+ galleryType = widget.type;+ collectionActions = CollectionActions(CollectionsService.instance);_selectedFilesListener = () {setState(() {});};- collectionActions = CollectionActions(CollectionsService.instance);+widget.selectedFiles.addListener(_selectedFilesListener);++ if (person.data.email == Configuration.instance.getEmail()) {+ _appBarTitle = "${widget.title} (Me)";+ } else {+ _appBarTitle = widget.title;+ }+_userAuthEventSubscription =Bus.instance.on<SubscriptionPurchasedEvent>().listen((event) {setState(() {});});- person = widget.person;- _appBarTitle = widget.title;- galleryType = widget.type;+_peopleChangedEventSubscription =Bus.instance.on<PeopleChangedEvent>().listen((event) {if (event.type == PeopleEventType.saveOrEditPerson &&event.source == "linkEmailToPerson") {- _appBarTitle = event.person?.data.name;person = event.person!;++ if (person.data.email == Configuration.instance.getEmail()) {+ _appBarTitle = "${person.data.name} (Me)";+ } else {+ _appBarTitle = person.data.name;+ }setState(() {});}},