1
0
Fork 0
mirror of https://github.com/matrix-org/gomatrix synced 2025-05-16 04:23:26 +00:00
This commit is contained in:
Andrew Morgan 2019-01-30 11:59:03 +00:00
parent 2e135b1860
commit c3f65ede3b

View file

@ -125,6 +125,6 @@ func ExtractUserLocalpart(userID string) (string, error) {
}
return strings.TrimPrefix(
strings.SplitN(userID, ":", 2)[0], // @foo:bar:8448 => [ "@foo", "bar:8448" ]
"@", // remove "@" prefix
"@", // remove "@" prefix
), nil
}