aboutsummaryrefslogtreecommitdiff
path: root/userapi/internal/api.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-09-01 09:20:40 +0100
committerGitHub <noreply@github.com>2022-09-01 09:20:40 +0100
commitad6b902b8462adb568d799c69a74b60d69574d0c (patch)
tree9037eb130a47c25cb320116758baa6ee265e89b6 /userapi/internal/api.go
parent175f65407a7f684753334022e66b8209f3db7396 (diff)
Refactor appservices component (#2687)
This PR refactors the app services component. It makes the following changes: * Each appservice now gets its own NATS JetStream consumer * The appservice database is now removed entirely, since we just use JetStream as a data source instead * The entire component is now much simpler and we deleted lots of lines of code 💅 The result is that it should be much lighter and hopefully much more performant.
Diffstat (limited to 'userapi/internal/api.go')
-rw-r--r--userapi/internal/api.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/userapi/internal/api.go b/userapi/internal/api.go
index 6ba46932..2f28ee90 100644
--- a/userapi/internal/api.go
+++ b/userapi/internal/api.go
@@ -28,7 +28,6 @@ import (
"github.com/sirupsen/logrus"
"golang.org/x/crypto/bcrypt"
- "github.com/matrix-org/dendrite/appservice/types"
"github.com/matrix-org/dendrite/clientapi/userutil"
"github.com/matrix-org/dendrite/internal/eventutil"
"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
dev := api.Device{
// Use AS dummy device ID
- ID: types.AppServiceDeviceID,
+ ID: "AS_Device",
// AS dummy device has AS's token.
AccessToken: token,
AppserviceID: appService.ID,