Don't set empty state snapshots
MODIFY
roomserver/internal/input/input_latest_events.go
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()

Don't set empty state snapshots