You can set a display name for your account in the preferences. Your account address (u/{account?.author?.shortAddress})
- is generated randomly from a cryptographic hash of your public key, similarly to how a bitcoin address is generated. You can change your account address to a
- readable name unique to you, by resolving it with a decentralized domain name service such as{' '}
+ is generated randomly from a cryptographic hash of your public key, similarly to how a bitcoin address is generated. You can{' '}
+ change your account address to a unique readable name you own, by resolving it with a decentralized domain
+ name service such as{' '}
ENS
{' '}
diff --git a/src/views/profile/profile.tsx b/src/views/profile/profile.tsx
index 70cfe18d..3ad0ad24 100644
--- a/src/views/profile/profile.tsx
+++ b/src/views/profile/profile.tsx
@@ -240,6 +240,7 @@ const Profile = () => {
const { t } = useTranslation();
const account = useAccount();
const isMobile = useWindowWidth() < 640;
+ const [showInfobar, setShowInfobar] = useState(false);
const profileTitle = account?.author?.displayName ? `${account?.author?.displayName} (u/${account?.author?.shortAddress})` : `u/${account?.author?.shortAddress}`;
useEffect(() => {
@@ -247,18 +248,17 @@ const Profile = () => {
}, [t, profileTitle]);
// only show infobar on first profile access and if the current account wasn't imported
- const showInfobarRef = useRef(false);
useEffect(() => {
const wasProfileAccessed = localStorage.getItem('wasProfileAccessed');
const importedAccountAddress = localStorage.getItem('importedAccountAddress');
if (!wasProfileAccessed && importedAccountAddress !== account?.author?.address) {
- showInfobarRef.current = true;
+ setShowInfobar(true);
localStorage.setItem('wasProfileAccessed', 'true');
}
}, [account?.author?.address]);
- const infobar = showInfobarRef.current && (
+ const infobar = showInfobar && (
{
-
+
{t('crypto_address')}
diff --git a/src/views/subplebbit/subplebbit.tsx b/src/views/subplebbit/subplebbit.tsx
index bb660f79..805421da 100644
--- a/src/views/subplebbit/subplebbit.tsx
+++ b/src/views/subplebbit/subplebbit.tsx
@@ -61,14 +61,14 @@ const Subplebbit = () => {
let footerFirstLine;
let footerSecondLine;
- if (feed.length === 0 && isOnline) {
+ if (feed.length === 0 && isOnline && started && !isSubCreatedButNotYetPublished) {
if (blocked) {
footerFirstLine = t('you_blocked_community');
} else {
footerFirstLine = t('no_posts');
}
- } else if (feed.length === 0 && started && isSubCreatedButNotYetPublished) {
- footerFirstLine = t('no_posts');
+ } else if (feed.length === 0 || !isOnline) {
+ footerFirstLine = loadingString;
} else if (hasMore) {
footerFirstLine = loadingString;
}