Don't set empty state snapshots

This commit is contained in:
Neil Alexander 2020-10-21 16:21:36 +01:00
parent 534f9a9eb6
commit 04dc019e5e
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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 { if updates, err = u.api.updateMemberships(u.ctx, u.updater, u.removed, u.added); err != nil {
return fmt.Errorf("u.api.updateMemberships: %w", err) return fmt.Errorf("u.api.updateMemberships: %w", err)
} }
} else {
u.newStateNID = u.oldStateNID
} }
update, err := u.makeOutputNewRoomEvent() update, err := u.makeOutputNewRoomEvent()