From 04dc019e5e2f60cd387699bb7f4f7eead15ba714 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 21 Oct 2020 16:21:36 +0100 Subject: [PATCH] Don't set empty state snapshots --- roomserver/internal/input/input_latest_events.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roomserver/internal/input/input_latest_events.go b/roomserver/internal/input/input_latest_events.go index a86e901d..dc758e9b 100644 --- a/roomserver/internal/input/input_latest_events.go +++ b/roomserver/internal/input/input_latest_events.go @@ -163,6 +163,8 @@ func (u *latestEventsUpdater) doUpdateLatestEvents() error { if updates, err = u.api.updateMemberships(u.ctx, u.updater, u.removed, u.added); err != nil { return fmt.Errorf("u.api.updateMemberships: %w", err) } + } else { + u.newStateNID = u.oldStateNID } update, err := u.makeOutputNewRoomEvent()