This commit is contained in:
Neil Alexander 2021-11-02 10:13:38 +00:00
parent 42973e7d65
commit fbd1a0ab13
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
4 changed files with 15 additions and 25 deletions

View file

@ -713,14 +713,8 @@ func federatedAuthProvider(
}
// Check the signatures of the event.
if res, err := gomatrixserverlib.VerifyEventSignatures(ctx, []*gomatrixserverlib.Event{ev}, keyRing); err != nil {
if err := ev.VerifyEventSignatures(ctx, keyRing); err != nil {
return nil, fmt.Errorf("missingAuth VerifyEventSignatures: %w", err)
} else {
for _, err := range res {
if err != nil {
return nil, fmt.Errorf("missingAuth VerifyEventSignatures: %w", err)
}
}
}
// If the event is OK then add it to the results and the retry map.