Soft-fail checks on KindNew

This commit is contained in:
Neil Alexander 2020-10-16 11:11:58 +01:00
parent 074afcdea3
commit 2f6b009fdb
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -54,7 +54,7 @@ func (r *Inputer) processRoomEvent(
}
var softfail bool
if input.Kind != api.KindOutlier {
if input.Kind == api.KindNew {
// Check that the event passes authentication checks based on the
// current room state.
softfail, err = helpers.CheckForSoftFail(ctx, r.DB, headered, input.StateEventIDs)