forked from firka/student-legacy
fixed app bricking with welcome message thing
This commit is contained in:
parent
41991b3b66
commit
f39ac80770
@ -126,8 +126,14 @@ class _WelcomeMessageEditorState extends State<WelcomeMessageEditor> {
|
|||||||
// }
|
// }
|
||||||
var finalText = _welcomeMsg.text
|
var finalText = _welcomeMsg.text
|
||||||
.trim()
|
.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
|
widget.settingsProvider
|
||||||
.update(welcomeMessage: finalText, store: true);
|
.update(welcomeMessage: finalText, store: true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user