If current slide is beyond the point of a slide being deleted, then the currentSlide will be showing a later slide then intended.
E.g. Imagine 10 slides, and the currentSlide being shown is slide 7. When slide 4 and 5 are deleted, the currentSlide number is still 7, but will advance to show what used to be slide 9, which skips what was slide 8.
To resolve, update currentSlide to be decremented if the slide being deleted is less than the current slide when updating room settings.
If current slide is beyond the point of a slide being deleted, then the currentSlide will be showing a later slide then intended.
E.g. Imagine 10 slides, and the currentSlide being shown is slide 7. When slide 4 and 5 are deleted, the currentSlide number is still 7, but will advance to show what used to be slide 9, which skips what was slide 8.
To resolve, update currentSlide to be decremented if the slide being deleted is less than the current slide when updating room settings.