0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-05-17 21:03:45 +02:00

Don't return error when account conflict is handled gracefully (#1782)

This commit is contained in:
Neil Alexander 2021-03-03 14:01:34 +00:00 committed by GitHub
parent 41fd15b9b6
commit f0139f12ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ func (a *UserInternalAPI) PerformAccountCreation(ctx context.Context, req *api.P
ServerName: a.ServerName,
UserID: fmt.Sprintf("@%s:%s", req.Localpart, a.ServerName),
}
return err
return nil
}
if err = a.AccountDB.SetDisplayName(ctx, req.Localpart, req.Localpart); err != nil {