Skip to content

Commit ff2ba03

Browse files
committed
msc3861: ++
1 parent fd52c7e commit ff2ba03

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

clientapi/admin_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ func TestAdminCheckUsernameAvailable(t *testing.T) {
15621562
}
15631563

15641564
// Nothing more to check, test is done.
1565-
if tc.wantOK {
1565+
if !tc.wantOK {
15661566
return
15671567
}
15681568

setup/monolith.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ type UserVerifierProvider struct {
9393
}
9494

9595
func (u *UserVerifierProvider) VerifyUserFromRequest(req *http.Request) (*userapi.Device, *util.JSONResponse) {
96-
return u.VerifyUserFromRequest(req)
96+
return u.UserVerifier.VerifyUserFromRequest(req)
9797
}
9898

9999
func NewUserVerifierProvider(userVerifier httputil.UserVerifier) *UserVerifierProvider {

userapi/api/api.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type UserInternalAPI interface {
3232

3333
QuerySearchProfilesAPI // used by p2p demos
3434
QueryExternalUserIDByLocalpartAndProvider(ctx context.Context, externalID, authProvider string) (*LocalpartExternalID, error)
35-
PerformLocalpartExternalUserIDCreation(ctx context.Context, localpart, externalID, authProvider string) (error)
35+
PerformLocalpartExternalUserIDCreation(ctx context.Context, localpart, externalID, authProvider string) error
3636
}
3737

3838
// api functions required by the appservice api
@@ -667,6 +667,7 @@ type QueryAccountByLocalpartRequest struct {
667667
type QueryAccountByLocalpartResponse struct {
668668
Account *Account
669669
}
670+
670671
// API functions required by the clientapi
671672
type ClientKeyAPI interface {
672673
UploadDeviceKeysAPI

0 commit comments

Comments
 (0)