Merge pull request #219 from pangeachat/limit-name-length
Limit name length
This commit is contained in:
commit
c0a56a3ee6
4 changed files with 10 additions and 0 deletions
|
|
@ -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 {
|
|||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
child: TextField(
|
||||
// #Pangea
|
||||
maxLength: 32,
|
||||
// Pangea#
|
||||
controller: controller.nameController,
|
||||
autocorrect: false,
|
||||
readOnly: controller.loading,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ void setClassDisplayname(BuildContext context, String? roomId) async {
|
|||
: L10n.of(context)!.changeTheNameOfTheChat,
|
||||
),
|
||||
content: TextField(
|
||||
maxLength: 32,
|
||||
controller: textFieldController,
|
||||
),
|
||||
actions: [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue