Don't redact, instead just silently drop

This commit is contained in:
Neil Alexander 2021-06-21 16:00:09 +01:00
parent d6cb8cc242
commit f9151302aa
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -235,14 +235,13 @@ func (t *txnReq) processTransaction(ctx context.Context) (*gomatrixserverlib.Res
continue
}
if err = gomatrixserverlib.VerifyAllEventSignatures(ctx, []*gomatrixserverlib.Event{event}, t.keys); err != nil {
event = event.Redact()
util.GetLogger(ctx).WithError(err).Warnf("Transaction: Couldn't validate signature of event %q", event.EventID())
/*
util.GetLogger(ctx).WithError(err).Warnf("Transaction: Couldn't validate signature of event %q", event.EventID())
results[event.EventID()] = gomatrixserverlib.PDUResult{
Error: err.Error(),
}
continue
*/
continue
}
pdus = append(pdus, event.Redact().Headered(verRes.RoomVersion))
}