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