mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-15 12:23:42 +01:00
Try splitting the right thing
This commit is contained in:
parent
ce4d0a9789
commit
33d13bcb70
1 changed files with 2 additions and 2 deletions
|
@ -364,7 +364,7 @@ func (a *KeyInternalAPI) processSelfSignatures(
|
|||
case *gomatrixserverlib.CrossSigningKey:
|
||||
for keyID := range sig.Keys {
|
||||
split := strings.SplitN(string(keyID), ":", 2)
|
||||
if len(split) > 1 && gomatrixserverlib.KeyID(split[1]) == keyID {
|
||||
if len(split) > 1 && gomatrixserverlib.KeyID(split[1]) == targetKeyID {
|
||||
targetKeyID = keyID // contains the ed25519: or other scheme
|
||||
break
|
||||
}
|
||||
|
@ -382,7 +382,7 @@ func (a *KeyInternalAPI) processSelfSignatures(
|
|||
case *gomatrixserverlib.DeviceKeys:
|
||||
for keyID := range sig.Keys {
|
||||
split := strings.SplitN(string(keyID), ":", 2)
|
||||
if len(split) > 1 && gomatrixserverlib.KeyID(split[1]) == keyID {
|
||||
if len(split) > 1 && gomatrixserverlib.KeyID(split[1]) == targetKeyID {
|
||||
targetKeyID = keyID // contains the ed25519: or other scheme
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue