mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-02 11:43:11 -06:00
Fix retrieving cross-signing signatures in /user/devices/{userId}
We need to know the target device IDs in order to get the signatures and we weren't populating those.
This commit is contained in:
parent
c07f347f00
commit
326cad2212
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue