Make it build

This commit is contained in:
Neil Alexander 2022-08-31 13:21:42 +01:00
parent 7142b3e381
commit 7be0ca41ff
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -28,7 +28,6 @@ import (
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"github.com/matrix-org/dendrite/appservice/types"
"github.com/matrix-org/dendrite/clientapi/userutil" "github.com/matrix-org/dendrite/clientapi/userutil"
"github.com/matrix-org/dendrite/internal/eventutil" "github.com/matrix-org/dendrite/internal/eventutil"
"github.com/matrix-org/dendrite/internal/pushrules" "github.com/matrix-org/dendrite/internal/pushrules"
@ -454,7 +453,7 @@ func (a *UserInternalAPI) queryAppServiceToken(ctx context.Context, token, appSe
// Create a dummy device for AS user // Create a dummy device for AS user
dev := api.Device{ dev := api.Device{
// Use AS dummy device ID // Use AS dummy device ID
ID: types.AppServiceDeviceID, ID: "AS_Device",
// AS dummy device has AS's token. // AS dummy device has AS's token.
AccessToken: token, AccessToken: token,
AppserviceID: appService.ID, AppserviceID: appService.ID,