Short term rentals

New listener love the show thanks for all the great information.
On the topic of short term rentals and cost seg let’s say you invest in a property before year end meet the material participation rules and use the cost seg for bonus depreciation. Then next year you decide the short term is to much hassle so you convert it to a long term rental what happens to the depreciation would it have to be realized as a gain.