diff options
Diffstat (limited to 'federationapi/routing/devices.go')
-rw-r--r-- | federationapi/routing/devices.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/federationapi/routing/devices.go b/federationapi/routing/devices.go index 4cd19996..8890eac4 100644 --- a/federationapi/routing/devices.go +++ b/federationapi/routing/devices.go @@ -43,6 +43,9 @@ func GetUserDevices( }, } sigRes := &keyapi.QuerySignaturesResponse{} + for _, dev := range res.Devices { + sigReq.TargetIDs[userID] = append(sigReq.TargetIDs[userID], gomatrixserverlib.KeyID(dev.DeviceID)) + } keyAPI.QuerySignatures(req.Context(), sigReq, sigRes) response := gomatrixserverlib.RespUserDevices{ |