Fix panic

This commit is contained in:
Neil Alexander 2022-02-06 13:42:44 +00:00
parent bab59dd1c2
commit 78a9a6de2a
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -297,7 +297,10 @@ func (r *Inputer) processRoomEvent(
"soft_fail": softfail,
"missing_prev": missingPrev,
}).Warn("Stored rejected event")
return commitTransaction, types.RejectedError(rejectionErr.Error())
if err != nil {
return commitTransaction, types.RejectedError(err.Error())
}
return commitTransaction, nil
}
switch input.Kind {