mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-22 14:21:55 -06:00
Remove SendAccountData, since InputAccountData is already doing that
This commit is contained in:
parent
60ec9180e6
commit
3617d5a0ff
|
@ -796,11 +796,6 @@ func (a *UserInternalAPI) PerformPushRulesPut(
|
||||||
if err := a.InputAccountData(ctx, &userReq, &userRes); err != nil {
|
if err := a.InputAccountData(ctx, &userReq, &userRes); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := a.SyncProducer.SendAccountData(req.UserID, eventutil.AccountData{
|
|
||||||
Type: pushRulesAccountDataType,
|
|
||||||
}); err != nil {
|
|
||||||
util.GetLogger(ctx).WithError(err).Errorf("syncProducer.SendData failed")
|
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue