aboutsummaryrefslogtreecommitdiff
path: root/appservice
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-06-17 11:22:26 +0100
committerGitHub <noreply@github.com>2020-06-17 11:22:26 +0100
commita66a3b830c53c223cb939bd010d3769f02f6ccfb (patch)
tree251b6464d8f8c4fffad106dc18f07203212427fc /appservice
parent04c99092a46b2ad0b90645bf6553360b5f1b7da7 (diff)
Make userapi control account creation entirely (#1139)
This makes a chokepoint with which we can finally fix 'database is locked' errors on sqlite during account creation
Diffstat (limited to 'appservice')
-rw-r--r--appservice/appservice.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/appservice/appservice.go b/appservice/appservice.go
index 84a6a9b1..72869041 100644
--- a/appservice/appservice.go
+++ b/appservice/appservice.go
@@ -110,6 +110,7 @@ func generateAppServiceAccount(
) error {
var accRes userapi.PerformAccountCreationResponse
err := userAPI.PerformAccountCreation(context.Background(), &userapi.PerformAccountCreationRequest{
+ AccountType: userapi.AccountTypeUser,
Localpart: as.SenderLocalpart,
AppServiceID: as.ID,
OnConflict: userapi.ConflictUpdate,