show page will not flash abandoned on load

This commit is contained in:
jessop 2020-02-06 13:27:48 -05:00
parent 9f1d4e3688
commit 39cb1cef55
2 changed files with 4 additions and 3 deletions

View file

@ -923,5 +923,6 @@
"refreshing the app": "refreshing the app", "refreshing the app": "refreshing the app",
"Follower": "Follower", "Follower": "Follower",
"%repost_channel_link% reposted": "%repost_channel_link% reposted", "%repost_channel_link% reposted": "%repost_channel_link% reposted",
"This channel may have been unpublished.": "This channel may have been unpublished." "This channel may have been unpublished.": "This channel may have been unpublished.",
"There was an error. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing Ctrl+R/Cmd+R.": "There was an error. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing Ctrl+R/Cmd+R."
} }

View file

@ -84,11 +84,11 @@ function ShowPage(props: Props) {
} }
innerContent = ( innerContent = (
<Page> <Page>
{isResolvingUri && <BusyIndicator message={__('Loading decentralized data...')} />} {(claim === undefined || isResolvingUri) && <BusyIndicator message={__('Loading decentralized data...')} />}
{!isResolvingUri && !isSubscribed && ( {!isResolvingUri && !isSubscribed && (
<span className="empty">{__("There's nothing available at this location.")}</span> <span className="empty">{__("There's nothing available at this location.")}</span>
)} )}
{!isResolvingUri && isSubscribed && <AbandonedChannelPreview uri={uri} type={'large'} />} {!isResolvingUri && isSubscribed && claim === null && <AbandonedChannelPreview uri={uri} type={'large'} />}
</Page> </Page>
); );
} else if (claim.name.length && claim.name[0] === '@') { } else if (claim.name.length && claim.name[0] === '@') {