Fix blank gif avatars #6060

Merged
infinite-persistence merged 1 commit from ip/blank-gif-avatar into master 2021-05-14 17:00:08 +02:00

1 commit

Author SHA1 Message Date
infinite-persistence
8fc9793648
Fix blank gif avatars
## Issue
6010: hyperchat send display issues with GIF profiles

The FreezeFrameWrapper have no `src` to freeze due to the lazy loading.

## Fix
Delay the freezing by making the lazy-load effect return a state to indicate when then `src` has been loaded.

Since the lazy-loader will `unobserve` after loading, the state will never go back to false, so we don't need to handle the case of preventing `new FreezeFrameWrapper` from being called multiple times from it's effect.
2021-05-13 09:59:18 +08:00