From f39ac80770c437c81203b2aa3cb78f5e4ec7aebb Mon Sep 17 00:00:00 2001 From: Kima Date: Thu, 5 Oct 2023 21:54:57 +0200 Subject: [PATCH] fixed app bricking with welcome message thing --- .../lib/ui/mobile/settings/welcome_message.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/filcnaplo_premium/lib/ui/mobile/settings/welcome_message.dart b/filcnaplo_premium/lib/ui/mobile/settings/welcome_message.dart index 9bc7575..456510d 100644 --- a/filcnaplo_premium/lib/ui/mobile/settings/welcome_message.dart +++ b/filcnaplo_premium/lib/ui/mobile/settings/welcome_message.dart @@ -126,8 +126,14 @@ class _WelcomeMessageEditorState extends State { // } var finalText = _welcomeMsg.text .trim() - .replaceAll('%s', '') - .replaceFirst('%name%', '%s'); + .replaceFirst('%name%', '\$s') + .replaceFirst('%user%', '\$s') + .replaceFirst('%username%', '\$s') + .replaceFirst('%me%', '\$s') + .replaceFirst('%profile%', '\$s') + .replaceAll('%', '') + .replaceFirst('\$s', '%s'); + // .replaceAll('\$s', 's'); widget.settingsProvider .update(welcomeMessage: finalText, store: true);