diff --git a/lib/config/app_config.dart b/lib/config/app_config.dart index cedef2c13..0b98d693c 100644 --- a/lib/config/app_config.dart +++ b/lib/config/app_config.dart @@ -17,7 +17,7 @@ abstract class AppConfig { static const String schemePrefix = 'matrix:'; static const String pushNotificationsChannelId = 'fluffychat_push'; static const String pushNotificationsAppId = 'chat.fluffy.fluffychat'; - static const double borderRadius = 18.0; + static const double borderRadius = 8.0; static const double spaceBorderRadius = 11.0; static const double columnWidth = 360.0; diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index f7ff5d48c..ce842573c 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -2780,5 +2780,6 @@ "mute": "Mute", "@mute": { "description": "This should be a very short string because there is not much space in the button!" - } + }, + "createNewChat": "Create new chat" } \ No newline at end of file diff --git a/lib/widgets/adaptive_dialogs/user_dialog.dart b/lib/widgets/adaptive_dialogs/user_dialog.dart index fc15c4e44..4e40cd83a 100644 --- a/lib/widgets/adaptive_dialogs/user_dialog.dart +++ b/lib/widgets/adaptive_dialogs/user_dialog.dart @@ -41,6 +41,7 @@ class UserDialog extends StatelessWidget { @override Widget build(BuildContext context) { final client = Matrix.of(context).client; + final directChatRoomId = client.getDirectChatFromUserId(profile.userId); final displayname = profile.displayName ?? profile.userId.localpart ?? @@ -247,7 +248,9 @@ class UserDialog extends StatelessWidget { router.go('/rooms/$roomId'); }, child: Text( - L10n.of(context).sendAMessage, + directChatRoomId != null + ? L10n.of(context).createNewChat + : L10n.of(context).sendAMessage, style: TextStyle(color: theme.colorScheme.secondary), ), ),