mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-04-02 05:56:53 +02: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);
|
setState(() => loading = true);
|
||||||
|
|
||||||
final preferredUsername =
|
final preferredUsername =
|
||||||
usernameController.text.toLowerCase().replaceAll(' ', '-');
|
usernameController.text.toLowerCase().trim().replaceAll(' ', '-');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await matrix.client.usernameAvailable(preferredUsername);
|
await matrix.client.usernameAvailable(preferredUsername);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user