mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Handle case when applying history visibility failed
This commit is contained in:
parent
7d9545ceea
commit
16048be236
1 changed files with 1 additions and 0 deletions
|
@ -301,6 +301,7 @@ func (p *PDUStreamProvider) addRoomDeltaToResponse(
|
|||
events, err := applyHistoryVisibilityFilter(ctx, snapshot, p.rsAPI, delta.RoomID, device.UserID, eventFilter.Limit, recentEvents)
|
||||
if err != nil {
|
||||
logrus.WithError(err).Error("unable to apply history visibility filter")
|
||||
_ = snapshot.Rollback()
|
||||
}
|
||||
|
||||
if len(delta.StateEvents) > 0 {
|
||||
|
|
Loading…
Reference in a new issue