fix: Trim username on registration
This commit is contained in:
parent
092f4af893
commit
df1f106aeb
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ class _SignUpState extends State<SignUp> {
|
|||
setState(() => loading = true);
|
||||
|
||||
final preferredUsername =
|
||||
usernameController.text.toLowerCase().replaceAll(' ', '-');
|
||||
usernameController.text.toLowerCase().trim().replaceAll(' ', '-');
|
||||
|
||||
try {
|
||||
await matrix.client.usernameAvailable(preferredUsername);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue