diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-10-08 13:30:30 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-10-08 13:30:30 +0100 |
commit | 78f6e1a31e9d034d8ffca28d38830d014a82e64f (patch) | |
tree | 0afd35114f42a72d903bd95c4404e4a4c50b0394 /roomserver | |
parent | a846dad0e1c2cd8d43d57bc72d106574bc350c39 (diff) |
Don't set new state NID if state regression
Diffstat (limited to 'roomserver')
-rw-r--r-- | roomserver/internal/input/input_latest_events.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/roomserver/internal/input/input_latest_events.go b/roomserver/internal/input/input_latest_events.go index 9c6e6a25..b6666cc0 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 } |