Send avatar updates asynchronously, same as display name updates

This commit is contained in:
Neil Alexander 2022-04-07 15:50:42 +01:00
parent 60ee7eef4c
commit 2dc35403d1
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -180,7 +180,7 @@ func SetAvatarURL(
return jsonerror.InternalServerError()
}
if err := api.SendEvents(req.Context(), rsAPI, api.KindNew, events, cfg.Matrix.ServerName, cfg.Matrix.ServerName, nil, false); err != nil {
if err := api.SendEvents(req.Context(), rsAPI, api.KindNew, events, cfg.Matrix.ServerName, cfg.Matrix.ServerName, nil, true); err != nil {
util.GetLogger(req.Context()).WithError(err).Error("SendEvents failed")
return jsonerror.InternalServerError()
}