From fdabba1851c489d801ea4029bce9dec7d415b2df Mon Sep 17 00:00:00 2001 From: Kegsay Date: Mon, 10 Aug 2020 12:38:33 +0100 Subject: bugfix: when a user's key changes, don't notify everyone on the server (#1253) * bugfix: when a user's key changes, don't notify everyone on the server Instead just notify the users you share a room with. * Update whitelist --- userapi/internal/api.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'userapi/internal/api.go') diff --git a/userapi/internal/api.go b/userapi/internal/api.go index b9d18822..f58c7113 100644 --- a/userapi/internal/api.go +++ b/userapi/internal/api.go @@ -31,6 +31,7 @@ import ( "github.com/matrix-org/dendrite/userapi/storage/devices" "github.com/matrix-org/gomatrixserverlib" "github.com/matrix-org/util" + "github.com/sirupsen/logrus" ) type UserInternalAPI struct { @@ -98,6 +99,11 @@ func (a *UserInternalAPI) PerformAccountCreation(ctx context.Context, req *api.P return nil } func (a *UserInternalAPI) PerformDeviceCreation(ctx context.Context, req *api.PerformDeviceCreationRequest, res *api.PerformDeviceCreationResponse) error { + util.GetLogger(ctx).WithFields(logrus.Fields{ + "localpart": req.Localpart, + "device_id": req.DeviceID, + "display_name": req.DeviceDisplayName, + }).Info("PerformDeviceCreation") dev, err := a.DeviceDB.CreateDevice(ctx, req.Localpart, req.DeviceID, req.AccessToken, req.DeviceDisplayName) if err != nil { return err -- cgit v1.2.3