Limit name length
@ -57,6 +57,9 @@ class NewGroupView extends StatelessWidget {
const SizedBox(width: 16),
Expanded(
child: TextField(
// #Pangea
maxLength: 32,
// Pangea#
controller: controller.nameController,
autocorrect: false,
readOnly: controller.loading,
@ -95,6 +95,9 @@ class NewSpaceView extends StatelessWidget {
@ -42,6 +42,9 @@ class SettingsController extends State<Settings> {
cancelLabel: L10n.of(context)!.cancel,
textFields: [
DialogTextField(
initialText: profile?.displayName ??
Matrix.of(context).client.userID!.localpart,
),
@ -27,6 +27,7 @@ void setClassDisplayname(BuildContext context, String? roomId) async {
: L10n.of(context)!.changeTheNameOfTheChat,
content: TextField(
controller: textFieldController,
actions: [