π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: truncate long user agent strings in logout message
AmanRajSinghMourya3f8db28b123a
diff --git a/mobile/apps/photos/lib/ui/account/sessions_page.dart b/mobile/apps/photos/lib/ui/account/sessions_page.dartindex 7ccf1bab94..e40c4b207f 100644--- a/mobile/apps/photos/lib/ui/account/sessions_page.dart+++ b/mobile/apps/photos/lib/ui/account/sessions_page.dart@@ -151,9 +151,13 @@ class _SessionsPageState extends State<SessionsPage> {final l10n = AppLocalizations.of(context);final isLoggingOutFromThisDevice =session.token == Configuration.instance.getToken();+ final displayedUserAgent = session.ua.length > 256+ ? "${session.ua.substring(0, 253)}..."+ : session.ua;final message = isLoggingOutFromThisDevice? l10n.thisWillLogYouOutOfThisDevice- : "${l10n.thisWillLogYouOutOfTheFollowingDevice}\n\n${session.ua}";+ : "${l10n.thisWillLogYouOutOfTheFollowingDevice}\n\n"+ "$displayedUserAgent";showBottomSheetComponent<void>(context: context,