mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-06 13:43:09 -06:00
Inform SyncAPI about newly created push_rules
This commit is contained in:
parent
9f239cfcf3
commit
ca7873ad22
|
|
@ -90,6 +90,13 @@ func (a *UserInternalAPI) PerformAccountCreation(ctx context.Context, req *api.P
|
||||||
return nil
|
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 {
|
if req.AccountType == api.AccountTypeGuest {
|
||||||
res.AccountCreated = true
|
res.AccountCreated = true
|
||||||
res.Account = acc
|
res.Account = acc
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue