0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-09-27 13:28:58 +02:00

Handle case when applying history visibility failed

This commit is contained in:
Neil Alexander 2022-09-30 16:55:10 +01:00
parent 7d9545ceea
commit 16048be236
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -301,6 +301,7 @@ func (p *PDUStreamProvider) addRoomDeltaToResponse(
events, err := applyHistoryVisibilityFilter(ctx, snapshot, p.rsAPI, delta.RoomID, device.UserID, eventFilter.Limit, recentEvents) events, err := applyHistoryVisibilityFilter(ctx, snapshot, p.rsAPI, delta.RoomID, device.UserID, eventFilter.Limit, recentEvents)
if err != nil { if err != nil {
logrus.WithError(err).Error("unable to apply history visibility filter") logrus.WithError(err).Error("unable to apply history visibility filter")
_ = snapshot.Rollback()
} }
if len(delta.StateEvents) > 0 { if len(delta.StateEvents) > 0 {