From 8128b730ef2746ebf38ee5da7654b662c603d167 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 22 Feb 2022 12:35:35 +0000 Subject: [PATCH] Fix unit test possibly --- keyserver/internal/device_list_update.go | 1 + 1 file changed, 1 insertion(+) 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,