aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-10-21 16:21:36 +0100
committerNeil Alexander <neilalexander@users.noreply.github.com>2020-10-21 16:21:36 +0100
commit04dc019e5e2f60cd387699bb7f4f7eead15ba714 (patch)
tree2908c77681febb7767257602e9cdeabf9e5948a8
parent534f9a9eb69ad35c7492c18c65cdbd55892bf930 (diff)
Don't set empty state snapshots
-rw-r--r--roomserver/internal/input/input_latest_events.go2
1 files changed, 2 insertions, 0 deletions
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()