aboutsummaryrefslogtreecommitdiff
path: root/userapi
diff options
context:
space:
mode:
Diffstat (limited to 'userapi')
-rw-r--r--userapi/internal/api.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/userapi/internal/api.go b/userapi/internal/api.go
index d1c12f05..be58e2d8 100644
--- a/userapi/internal/api.go
+++ b/userapi/internal/api.go
@@ -90,6 +90,13 @@ func (a *UserInternalAPI) PerformAccountCreation(ctx context.Context, req *api.P
return nil
}
+ // Inform the SyncAPI about the newly created push_rules
+ if err = a.SyncProducer.SendAccountData(acc.UserID, "", "m.push_rules"); err != nil {
+ util.GetLogger(ctx).WithFields(logrus.Fields{
+ "user_id": acc.UserID,
+ }).WithError(err).Warn("failed to send account data to the SyncAPI")
+ }
+
if req.AccountType == api.AccountTypeGuest {
res.AccountCreated = true
res.Account = acc