uploaded gifs fail to loop in chat on firefox

(#676) Bug Fixed media

Thread

Comment by @Solly-Bird
RexSystem 1 vote originally by @Solly-Bird on GitHub
I think I've narrowed it down to fluxer_app/src/features/app/hooks/useAnimatedImageDecoder.ts. It seems that anything that exceeds maxCachedFrames has this problem (default of 24 frames). Not sure why that happens in Firefox but not Chrome though. If I set maxedCachedFrames to 5, then this problem occurs with the GIF i uploaded too (since it has 12 frames). If I set it to 512, then your gif plays without issue