chore: Follow up user dialog

This commit is contained in:
Christian Kußowski 2026-03-05 15:28:42 +01:00
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

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