Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Commit 2dc3540

Browse files
committed
Send avatar updates asynchronously, same as display name updates
1 parent 60ee7ee commit 2dc3540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clientapi/routing/profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func SetAvatarURL(
180180
return jsonerror.InternalServerError()
181181
}
182182

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

0 commit comments

Comments
 (0)