chore: Follow up sendOnEnter fix

This commit is contained in:
Krille 2023-12-27 15:50:43 +01:00
parent e60bc1c340
commit 1a3d7f5b1c
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -251,7 +251,7 @@ class ChatInputRow extends StatelessWidget {
autofocus: !PlatformInfos.isMobile, autofocus: !PlatformInfos.isMobile,
keyboardType: TextInputType.multiline, keyboardType: TextInputType.multiline,
textInputAction: textInputAction:
AppConfig.sendOnEnter ?? !PlatformInfos.isMobile AppConfig.sendOnEnter == true && PlatformInfos.isMobile
? TextInputAction.send ? TextInputAction.send
: null, : null,
onSubmitted: controller.onInputBarSubmitted, onSubmitted: controller.onInputBarSubmitted,