Limit display name length to 32

This commit is contained in:
Kelrap 2024-05-17 15:45:14 -04:00 committed by GitHub
parent f84e92d9d0
commit 09f26fb91f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,6 +42,9 @@ class SettingsController extends State<Settings> {
cancelLabel: L10n.of(context)!.cancel,
textFields: [
DialogTextField(
// #Pangea
maxLength: 32,
// Pangea#
initialText: profile?.displayName ??
Matrix.of(context).client.userID!.localpart,
),