From 78f6e1a31e9d034d8ffca28d38830d014a82e64f Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 8 Oct 2020 13:30:30 +0100 Subject: [PATCH] Don't set new state NID if state regression --- roomserver/internal/input/input_latest_events.go | 1 + 1 file changed, 1 insertion(+) diff --git a/roomserver/internal/input/input_latest_events.go b/roomserver/internal/input/input_latest_events.go index 9c6e6a25e..b6666cc03 100644 --- a/roomserver/internal/input/input_latest_events.go +++ b/roomserver/internal/input/input_latest_events.go @@ -242,6 +242,7 @@ func (u *latestEventsUpdater) latestState() error { ) u.added = u.added[:0] u.removed = u.removed[:0] + u.newStateNID = u.oldStateNID return nil }