aboutsummaryrefslogtreecommitdiff
path: root/clientapi
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-03-03 18:24:14 +0000
committerGitHub <noreply@github.com>2022-03-03 18:24:14 +0000
commitf75169c3535488ac584c4e270bc9e6b0cb69e539 (patch)
tree6205dc153bc22ad5904ef5a89a337cb8f0ed21aa /clientapi
parent72022a6ecf80177a28883d7016790ea41646d396 (diff)
Send profile updates asynchronously (#2246)
Diffstat (limited to 'clientapi')
-rw-r--r--clientapi/routing/profile.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/routing/profile.go b/clientapi/routing/profile.go
index 717cbda7..4aab0371 100644
--- a/clientapi/routing/profile.go
+++ b/clientapi/routing/profile.go
@@ -286,7 +286,7 @@ func SetDisplayName(
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()
}