Display name too

This commit is contained in:
Neil Alexander 2022-11-08 11:07:03 +00:00
parent 7d097325a3
commit ea3517d94e
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -310,6 +310,7 @@ func getSenderDevice(
displayNameRes := &userapi.PerformUpdateDisplayNameResponse{}
if err = userAPI.SetDisplayName(ctx, &userapi.PerformUpdateDisplayNameRequest{
Localpart: cfg.Matrix.ServerNotices.LocalPart,
ServerName: cfg.Matrix.ServerName,
DisplayName: cfg.Matrix.ServerNotices.DisplayName,
}, displayNameRes); err != nil {
util.GetLogger(ctx).WithError(err).Error("userAPI.SetDisplayName failed")