mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-15 06:03:44 +01:00
Try that again
This commit is contained in:
parent
e94b989f37
commit
ce4d0a9789
1 changed files with 4 additions and 2 deletions
|
@ -363,7 +363,8 @@ func (a *KeyInternalAPI) processSelfSignatures(
|
||||||
switch sig := signature.CrossSigningBody.(type) {
|
switch sig := signature.CrossSigningBody.(type) {
|
||||||
case *gomatrixserverlib.CrossSigningKey:
|
case *gomatrixserverlib.CrossSigningKey:
|
||||||
for keyID := range sig.Keys {
|
for keyID := range sig.Keys {
|
||||||
if gomatrixserverlib.KeyID(strings.SplitN(string(keyID), ":", 1)[1]) == keyID {
|
split := strings.SplitN(string(keyID), ":", 2)
|
||||||
|
if len(split) > 1 && gomatrixserverlib.KeyID(split[1]) == keyID {
|
||||||
targetKeyID = keyID // contains the ed25519: or other scheme
|
targetKeyID = keyID // contains the ed25519: or other scheme
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
@ -380,7 +381,8 @@ func (a *KeyInternalAPI) processSelfSignatures(
|
||||||
|
|
||||||
case *gomatrixserverlib.DeviceKeys:
|
case *gomatrixserverlib.DeviceKeys:
|
||||||
for keyID := range sig.Keys {
|
for keyID := range sig.Keys {
|
||||||
if gomatrixserverlib.KeyID(strings.SplitN(string(keyID), ":", 1)[1]) == keyID {
|
split := strings.SplitN(string(keyID), ":", 2)
|
||||||
|
if len(split) > 1 && gomatrixserverlib.KeyID(split[1]) == keyID {
|
||||||
targetKeyID = keyID // contains the ed25519: or other scheme
|
targetKeyID = keyID // contains the ed25519: or other scheme
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue