Matrix user IDs (MXIDs) contain colons (e.g. @alice:matrix.org) which caused MatchAllowed to misinterpret them as canonical platform:id pairs. The @ prefix in the allow_from entry is an explicit signal of a username or MXID, not a platform:id separator. Changes: - Move isAtUsername check before the canonical parsing block - Gate canonical parsing with !isAtUsername to skip it for @ entries - Add direct match of full @-prefixed entry against PlatformID/Username - Add test cases covering all Matrix allow_from formats from the issue Fixes #2815 |
||
|---|---|---|
| .. | ||
| identity.go | ||
| identity_test.go | ||