quiet icon indicating copy to clipboard operation
quiet copied to clipboard

Language is not supported (Swedish)

Open matstage opened this issue 1 year ago • 4 comments

Hi,

I tried to create a channel using the Swedish word for meeting (Möte). When creating the channel, I get the error message: "Name cannot begin with whitespaces or dashes"!

Replacing the ö with an o creates the channel successfully.

Quiet_Language

Version tested on are 2.1.0 and 2.1.1!

matstage avatar Feb 17 '24 13:02 matstage

Right now channel names are validated just as strictly as usernames. We don't need to do this, I don't think, so the solution would be to allow special characters in channel names.

holmesworcester avatar Feb 17 '24 18:02 holmesworcester

Also the error message is misleading here. @richardtorres314, tagging you in case you find this interesting.

leblowl avatar Feb 19 '24 16:02 leblowl

@holmesworcester Will the same apply to community names (allowing of special characters)? What are we classifying as special characters? Lastly, we set the username to lowercase; will the same apply both community and channel names? I'll have a PR open this week for this issue. Thank you!

richardtorres314 avatar Jul 01 '24 00:07 richardtorres314

@richardtorres314 apologies for the slow reply!

Will the same apply to community names (allowing of special characters)?

Yes. There will be no attempt at a uniqueness guarantee for community names so it makes no sense AFAICT to restrict the choice of community name.

What are we classifying as special characters?

For usernames, anything not a-z, 0-9.

Lastly, we set the username to lowercase; will the same apply both community and channel names?

The reason for enforcing all lowercase for usernames is to limit impersonation, so we do not need to do this for community and channel names since those can be duplicates.

I'll have a PR open this week for this issue. Thank you!

Thank you!

holmesworcester avatar Jul 10 '24 16:07 holmesworcester