#1 Fixed chat timestamps not always working correctly

This commit is contained in:
2024-01-01 01:36:14 +01:00
parent 4e127f6ea7
commit d033042e0b
2 changed files with 7 additions and 3 deletions

View File

@ -154,7 +154,7 @@ class _ChatTextfieldState extends State<ChatTextfield> {
),
cursorColor: Colors.white,
onChanged: (String text) {
if(text == "marbot marbot marbot") {
if(text.trim().toLowerCase() == "marbot marbot marbot") {
var newText = "Roboter sind cool und so, aber marbots sind besser!";
_textBoxController.text = newText;
text = newText;