aboutsummaryrefslogtreecommitdiff
path: root/federationapi/routing/devices.go
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2020-08-04 12:02:13 +0100
committerKegan Dougal <kegan@matrix.org>2020-08-04 12:02:13 +0100
commit4cf7c081461b38c787847da126da15d12285179c (patch)
tree47a7f594b202082a4a9fca28a7acab34f8309fc9 /federationapi/routing/devices.go
parent78ab33f91f6368c40a036654f2d820299abbf66e (diff)
Fix response format for federation /devices requests
Diffstat (limited to 'federationapi/routing/devices.go')
-rw-r--r--federationapi/routing/devices.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/routing/devices.go b/federationapi/routing/devices.go
index 0d1d85b4..00631b9b 100644
--- a/federationapi/routing/devices.go
+++ b/federationapi/routing/devices.go
@@ -53,7 +53,7 @@ func GetUserDevices(
device := gomatrixserverlib.RespUserDevice{
DeviceID: dev.DeviceID,
DisplayName: dev.DisplayName,
- Keys: []gomatrixserverlib.RespUserDeviceKeys{key},
+ Keys: key,
}
response.Devices = append(response.Devices, device)
}