Fix syncapi

This commit is contained in:
Neil Alexander 2020-10-16 12:53:08 +01:00
parent 29a42e1a9a
commit e1461bfca6
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -146,7 +146,7 @@ func (s *OutputRoomEventConsumer) onNewRoomEvent(
}
}
if msg.IsForwardExtremity && msg.RewritesState {
if msg.RewritesState {
if err = s.db.PurgeRoom(ctx, ev.RoomID()); err != nil {
return fmt.Errorf("s.db.PurgeRoom: %w", err)
}