From 4286c1fb711ca2c970107f13f1243c4aad453219 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 6 Oct 2020 09:40:04 +0100 Subject: [PATCH] Use [] not null when there are no devices --- federationapi/routing/devices.go | 1 + 1 file changed, 1 insertion(+) diff --git a/federationapi/routing/devices.go b/federationapi/routing/devices.go index 00631b9b6..07862451f 100644 --- a/federationapi/routing/devices.go +++ b/federationapi/routing/devices.go @@ -40,6 +40,7 @@ func GetUserDevices( response := gomatrixserverlib.RespUserDevices{ UserID: userID, StreamID: res.StreamID, + Devices: []gomatrixserverlib.RespUserDevice{}, } for _, dev := range res.Devices {