chore: Follow up user dialog

This commit is contained in:
Christian Kußowski 2026-03-05 15:28:42 +01:00
parent 993e12a946
commit 0fe91bfe14
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 7 additions and 3 deletions

View file

@ -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;

View file

@ -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"
}

View file

@ -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),
),
),