Merge pull request #2352 from ecency/sa/cache-subscribed-communities

user communities load glitch fix
This commit is contained in:
Feruz M 2022-06-11 20:52:38 +03:00 committed by GitHub
commit e41ac34853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,6 @@ const CommunitiesContainer = ({ children, navigation }) => {
setIsSubscriptionsLoading(true);
getSubscriptions(currentAccount.username)
.then((subs) => {
setIsSubscriptionsLoading(false);
subs.forEach((item) => item.push(true));
getCommunities('', 50, null, 'rank').then((communities) => {
communities.forEach((community) =>
@ -100,6 +99,7 @@ const CommunitiesContainer = ({ children, navigation }) => {
setSubscriptions(subs);
setDiscovers(shuffle(communities));
setIsSubscriptionsLoading(false);
});
})
.catch((err) => {