GeopJr / Tuba

Browse the Fediverse
https://tuba.geopjr.dev/
GNU General Public License v3.0
557 stars 60 forks source link

fix(MediaViewer): race condition between reveal and todo #869

Closed GeopJr closed 6 months ago

GeopJr commented 6 months ago

fix: #868 ??? (maybe?) fix: #870

Noticed a race condition between revealer and todo items. Since we changed the status attachments to reveal the MV at a later point, the MV gets revealed before the items finish resolving.

Instead, make the MV set itself as revealed when the scale transition finishes. At the same time, optimize the todo item resolving by resolving the one to be revealed first and then the rest.

Needs some testing