Skip to content

Commit

Permalink
msc3861: ++
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnight committed Feb 12, 2025
1 parent fd52c7e commit ff2ba03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clientapi/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,7 @@ func TestAdminCheckUsernameAvailable(t *testing.T) {
}

// Nothing more to check, test is done.
if tc.wantOK {
if !tc.wantOK {
return
}

Expand Down
2 changes: 1 addition & 1 deletion setup/monolith.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ type UserVerifierProvider struct {
}

func (u *UserVerifierProvider) VerifyUserFromRequest(req *http.Request) (*userapi.Device, *util.JSONResponse) {
return u.VerifyUserFromRequest(req)
return u.UserVerifier.VerifyUserFromRequest(req)
}

func NewUserVerifierProvider(userVerifier httputil.UserVerifier) *UserVerifierProvider {
Expand Down
3 changes: 2 additions & 1 deletion userapi/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type UserInternalAPI interface {

QuerySearchProfilesAPI // used by p2p demos
QueryExternalUserIDByLocalpartAndProvider(ctx context.Context, externalID, authProvider string) (*LocalpartExternalID, error)
PerformLocalpartExternalUserIDCreation(ctx context.Context, localpart, externalID, authProvider string) (error)
PerformLocalpartExternalUserIDCreation(ctx context.Context, localpart, externalID, authProvider string) error
}

// api functions required by the appservice api
Expand Down Expand Up @@ -667,6 +667,7 @@ type QueryAccountByLocalpartRequest struct {
type QueryAccountByLocalpartResponse struct {
Account *Account
}

// API functions required by the clientapi
type ClientKeyAPI interface {
UploadDeviceKeysAPI
Expand Down

0 comments on commit ff2ba03

Please sign in to comment.