mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Fix unit test possibly
This commit is contained in:
parent
8a3ee19413
commit
8128b730ef
|
|
@ -245,6 +245,7 @@ func (u *DeviceListUpdater) update(ctx context.Context, event gomatrixserverlib.
|
||||||
// DeviceKeysJSON will side-effect modify this, so it needs
|
// DeviceKeysJSON will side-effect modify this, so it needs
|
||||||
// to be a copy, not sharing any pointers with the above.
|
// to be a copy, not sharing any pointers with the above.
|
||||||
deviceKeysCopy := *keys[0].DeviceKeys
|
deviceKeysCopy := *keys[0].DeviceKeys
|
||||||
|
deviceKeysCopy.KeyJSON = nil
|
||||||
existingKeys := []api.DeviceMessage{
|
existingKeys := []api.DeviceMessage{
|
||||||
{
|
{
|
||||||
Type: keys[0].Type,
|
Type: keys[0].Type,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue