aboutsummaryrefslogtreecommitdiff
path: root/federationsender/internal/perform.go
diff options
context:
space:
mode:
Diffstat (limited to 'federationsender/internal/perform.go')
-rw-r--r--federationsender/internal/perform.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/federationsender/internal/perform.go b/federationsender/internal/perform.go
index 2df936e3..53fa974b 100644
--- a/federationsender/internal/perform.go
+++ b/federationsender/internal/perform.go
@@ -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.