From 4124e9837a35a69e36b1799b893ad7fc22e4a0e9 Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Thu, 29 Apr 2021 02:57:15 +0500 Subject: [PATCH 1/3] allowing blog fetch when logged out --- src/components/tabbedPosts/services/tabbedPostsFetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tabbedPosts/services/tabbedPostsFetch.ts b/src/components/tabbedPosts/services/tabbedPostsFetch.ts index 21e9ab351..6ce27525c 100644 --- a/src/components/tabbedPosts/services/tabbedPostsFetch.ts +++ b/src/components/tabbedPosts/services/tabbedPostsFetch.ts @@ -36,7 +36,7 @@ export const loadPosts = async ({ isLoading || !isConnected || (!isLoggedIn && filterKey === 'feed') || - (!isLoggedIn && filterKey === 'blog') + (!isLoggedIn && filterKey === 'communities') ) { return; } From 6cc71f1e6e1bafbc9a42d6d2ae245d846a81db77 Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Thu, 29 Apr 2021 03:37:43 +0500 Subject: [PATCH 2/3] reseting tabbedposts key on filters change --- src/screens/feed/screen/feedScreen.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/screens/feed/screen/feedScreen.js b/src/screens/feed/screen/feedScreen.js index 083970874..9cfdc5e32 100644 --- a/src/screens/feed/screen/feedScreen.js +++ b/src/screens/feed/screen/feedScreen.js @@ -35,6 +35,7 @@ const FeedScreen = () => {
Date: Thu, 29 Apr 2021 04:13:27 +0500 Subject: [PATCH 3/3] showing posts placeholder instead of NoPost content for blogs filter --- src/components/tabbedPosts/view/listEmptyView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tabbedPosts/view/listEmptyView.tsx b/src/components/tabbedPosts/view/listEmptyView.tsx index 593c75f4f..1c3023fb7 100644 --- a/src/components/tabbedPosts/view/listEmptyView.tsx +++ b/src/components/tabbedPosts/view/listEmptyView.tsx @@ -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 (