0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-15 01:53:50 +01:00

Don't do it for device keys

This commit is contained in:
Neil Alexander 2022-04-26 09:46:18 +01:00
parent 33d13bcb70
commit d1cb9df31b
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -380,13 +380,6 @@ func (a *KeyInternalAPI) processSelfSignatures(
} }
case *gomatrixserverlib.DeviceKeys: case *gomatrixserverlib.DeviceKeys:
for keyID := range sig.Keys {
split := strings.SplitN(string(keyID), ":", 2)
if len(split) > 1 && gomatrixserverlib.KeyID(split[1]) == targetKeyID {
targetKeyID = keyID // contains the ed25519: or other scheme
break
}
}
for originUserID, forOriginUserID := range sig.Signatures { for originUserID, forOriginUserID := range sig.Signatures {
for originKeyID, originSig := range forOriginUserID { for originKeyID, originSig := range forOriginUserID {
if err := a.DB.StoreCrossSigningSigsForTarget( if err := a.DB.StoreCrossSigningSigsForTarget(