aboutsummaryrefslogtreecommitdiff
path: root/federationsender/internal
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-11-02 10:13:38 +0000
committerNeil Alexander <neilalexander@users.noreply.github.com>2021-11-02 10:13:38 +0000
commitfbd1a0ab13b330026b3893ee40582fcacbfae376 (patch)
treedfc9f0744d35218a1af76d4cfbe770b047940abe /federationsender/internal
parent42973e7d65c218eb6771de4707e0aeaa707867fc (diff)
Update to matrix-org/gomatrixserverlib@5e02b64
Diffstat (limited to 'federationsender/internal')
-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.