lbry-desktop/ui/component/fileThumbnail
infinite-persistence 1e7e7a7b7a
Notifications: use fetched urls instead of resolving (#820)
* Fix avatar occasionally stuck in spaceman

## Issue
Sometimes, we'll see a channel profile (e.g. in upper-right, in channel selector) stuck in the fallback Spaceman image.

This is due to OptimizedImage always starting with a blank src, and updated later when the mounted size has been determined. ChannelThumbnail, which uses OptimizedImage, captured the `onError` due to blank src.

## Fix
Don't mount the <img> until the optimum size has been determined.

* FileThumbnail: skip resolve if thumbnail url is specified

* UriIndicator: skip resolve if channel info is specified

* Notifications: disable batch resolve + use fetched data if available + fallback to resolve if n/a

The fallback is using the individual resolve when no direct data is provided and claim is undefined.
2022-02-07 15:59:20 -05:00
..
FreezeframeLite Fix hover on gif thumbnails (#6991) 2021-08-31 12:40:59 -04:00
FreezeframeWrapper.jsx Fix blank gif avatars (#6060) 2021-05-14 11:00:07 -04:00
index.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
placeholder.png new text viewer layout 2020-01-06 16:35:43 -05:00
thumb.jsx Fallback image for <FileThumbnail> 2021-08-17 19:46:54 -07:00
view.jsx Notifications: use fetched urls instead of resolving (#820) 2022-02-07 15:59:20 -05:00