diff --git a/keyserver/internal/device_list_update.go b/keyserver/internal/device_list_update.go index 40ba3a937..b208f0ce5 100644 --- a/keyserver/internal/device_list_update.go +++ b/keyserver/internal/device_list_update.go @@ -245,6 +245,7 @@ func (u *DeviceListUpdater) update(ctx context.Context, event gomatrixserverlib. // DeviceKeysJSON will side-effect modify this, so it needs // to be a copy, not sharing any pointers with the above. deviceKeysCopy := *keys[0].DeviceKeys + deviceKeysCopy.KeyJSON = nil existingKeys := []api.DeviceMessage{ { Type: keys[0].Type,