fix failing to register new appservice accounts

this is such a terribly named enum field.

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-17 22:13:09 -04:00 committed by June
parent 0301c7c083
commit 2be43d3712

View file

@ -84,7 +84,7 @@ where
appservice_registration appservice_registration
{ {
match metadata.authentication { match metadata.authentication {
AuthScheme::AccessToken | AuthScheme::AppserviceToken => { AuthScheme::AccessToken => {
let user_id = query_params.user_id.map_or_else( let user_id = query_params.user_id.map_or_else(
|| { || {
UserId::parse_with_server_name( UserId::parse_with_server_name(
@ -105,7 +105,7 @@ where
// TODO: Check if appservice is allowed to be that user // TODO: Check if appservice is allowed to be that user
(Some(user_id), None, None, true) (Some(user_id), None, None, true)
}, },
AuthScheme::AccessTokenOptional => { AuthScheme::AccessTokenOptional | AuthScheme::AppserviceToken => {
let user_id = query_params.user_id.map_or_else( let user_id = query_params.user_id.map_or_else(
|| { || {
UserId::parse_with_server_name( UserId::parse_with_server_name(