mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-24 22:42:33 +01:00
fix: Trim username on registration
This commit is contained in:
parent
51505631b5
commit
61a8eb553c
@ -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…
Reference in New Issue
Block a user