mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-18 19:01:38 +03:00
commit
2fe1cad6cc
@ -36,7 +36,7 @@ export const loadPosts = async ({
|
||||
isLoading ||
|
||||
!isConnected ||
|
||||
(!isLoggedIn && filterKey === 'feed') ||
|
||||
(!isLoggedIn && filterKey === 'blog')
|
||||
(!isLoggedIn && filterKey === 'communities')
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
@ -228,7 +228,7 @@ const TabEmptyView = ({
|
||||
|
||||
|
||||
//render related operations
|
||||
if ((filterKey === 'feed' || filterKey === 'blog' || filterKey === 'friends' || filterKey === 'communities') && !isLoggedIn) {
|
||||
if ((filterKey === 'feed' || filterKey === 'friends' || filterKey === 'communities') && !isLoggedIn) {
|
||||
return (
|
||||
<NoPost
|
||||
imageStyle={styles.noImage}
|
||||
|
@ -35,6 +35,7 @@ const FeedScreen = () => {
|
||||
<Header enableViewModeToggle={true} />
|
||||
<SafeAreaView style={styles.container}>
|
||||
<TabbedPosts
|
||||
key={JSON.stringify(filterOptions)} //this hack of key change resets tabbedposts whenever filters chanage, effective to remove filter change android bug
|
||||
filterOptions={filterOptions}
|
||||
filterOptionsValue={feedScreenFilters}
|
||||
getFor={get(currentAccount, 'name', null) ? 'feed' : 'hot'}
|
||||
|
Loading…
Reference in New Issue
Block a user