From 78a9a6de2a4c6edd73a810e9be31e59e15cb5629 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Sun, 6 Feb 2022 13:42:44 +0000 Subject: [PATCH] Fix panic --- roomserver/internal/input/input_events.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roomserver/internal/input/input_events.go b/roomserver/internal/input/input_events.go index 5221aa529..06af175b6 100644 --- a/roomserver/internal/input/input_events.go +++ b/roomserver/internal/input/input_events.go @@ -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 {