mautrix/go

UserID.Parse allows spec-uncompliant localparts

Closed this issue · 0 comments

https://matrix.org/docs/spec/appendices#user-identifiers specifies that the localpart of a Matrix user ID must be at least 1 character, but UserID.Parse() accepts user IDs with an empty (i.e. 0 char) localpart.