mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-30 00:52:42 +03:00
commit
e8bb0b7f19
@ -1,14 +1,14 @@
|
||||
PODS:
|
||||
- appcenter-analytics (3.1.3):
|
||||
- AppCenter/Analytics (~> 3.3.4)
|
||||
- AppCenterReactNativeShared (~> 3.1)
|
||||
- appcenter-analytics (3.1.0):
|
||||
- AppCenter/Analytics
|
||||
- AppCenterReactNativeShared
|
||||
- React
|
||||
- appcenter-core (3.1.3):
|
||||
- AppCenterReactNativeShared (~> 3.1)
|
||||
- appcenter-core (3.1.0):
|
||||
- AppCenterReactNativeShared
|
||||
- React
|
||||
- appcenter-crashes (3.1.3):
|
||||
- AppCenter/Crashes (~> 3.3.4)
|
||||
- AppCenterReactNativeShared (~> 3.1)
|
||||
- appcenter-crashes (3.1.0):
|
||||
- AppCenter/Crashes
|
||||
- AppCenterReactNativeShared
|
||||
- React
|
||||
- AppCenter/Analytics (3.3.4):
|
||||
- AppCenter/Core
|
||||
@ -642,9 +642,9 @@ EXTERNAL SOURCES:
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
AppCenter: 0487be185c038ed2ecc5ed38219af1dcd280af23
|
||||
appcenter-analytics: ecf5dc1a919ea2247323a23c16a2e15affc0a4b3
|
||||
appcenter-core: a5fca14d50ac3db1ed3e44c730919e0426d436ce
|
||||
appcenter-crashes: 9fb422480b397e8ef1894cb8635b65c78b7d8618
|
||||
appcenter-analytics: cca12b5d07593a309e99db475f6da7f1a61ae694
|
||||
appcenter-core: cd5eaa48cfc6dd87dad2912d6718f21f4955327f
|
||||
appcenter-crashes: 369cc9160392c137b791304ee96957f28ef143d1
|
||||
AppCenterReactNativeShared: 66667cd2dfad295b84bbf0f462e0e139e2128284
|
||||
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
|
||||
BugsnagReactNative: 98fb350df4bb0c94cce903023531a1a5cc11fa51
|
||||
@ -726,4 +726,4 @@ SPEC CHECKSUMS:
|
||||
|
||||
PODFILE CHECKSUM: fe3729fa5bd9034637b0c0653446c2895b1c839d
|
||||
|
||||
COCOAPODS: 1.9.3
|
||||
COCOAPODS: 1.10.1
|
||||
|
@ -45,9 +45,9 @@
|
||||
"@react-native-firebase/app": "^8.4.7",
|
||||
"@react-native-firebase/dynamic-links": "^7.4.2",
|
||||
"@react-native-firebase/messaging": "^7.4.2",
|
||||
"appcenter": "^3.1.0",
|
||||
"appcenter-analytics": "^3.1.0",
|
||||
"appcenter-crashes": "^3.1.0",
|
||||
"appcenter": "3.1.0",
|
||||
"appcenter-analytics": "3.1.0",
|
||||
"appcenter-crashes": "3.1.0",
|
||||
"axios": "^0.21.1",
|
||||
"buffer": "^5.4.3",
|
||||
"bugsnag-react-native": "^2.23.10",
|
||||
|
@ -503,9 +503,13 @@ const PostsContainer = ({
|
||||
};
|
||||
|
||||
const _matchFreshPosts = async (posts, reducerFilter) => {
|
||||
const cachedPosts = cache.cachedData[reducerFilter].posts.slice(0, 5);
|
||||
let cachedPosts = cache.cachedData[reducerFilter].posts;
|
||||
|
||||
const newPosts = [];
|
||||
if (cachedPosts.length > 5) {
|
||||
cachedPosts = cachedPosts.slice(0, 5);
|
||||
}
|
||||
|
||||
let newPosts = [];
|
||||
posts.forEach((post, index) => {
|
||||
const newPostId = get(post, 'post_id');
|
||||
const postExist = cachedPosts.find((cPost) => get(cPost, 'post_id', 0) === newPostId);
|
||||
@ -521,7 +525,10 @@ const PostsContainer = ({
|
||||
: cache.currentFilter === reducerFilter;
|
||||
|
||||
if (newPosts.length > 0 && isRightFilter) {
|
||||
setNewPostsPopupPictures(newPosts.slice(0, 5).map((post) => get(post, 'avatar', '')));
|
||||
if (newPosts.length > 5) {
|
||||
newPosts = newPosts.slice(0, 5);
|
||||
}
|
||||
setNewPostsPopupPictures(newPosts.map((post) => get(post, 'avatar', '')));
|
||||
} else {
|
||||
_scheduleLatestPostsCheck(posts[0]);
|
||||
}
|
||||
|
38
yarn.lock
38
yarn.lock
@ -1583,24 +1583,24 @@ anymatch@^2.0.0:
|
||||
micromatch "^3.1.4"
|
||||
normalize-path "^2.1.1"
|
||||
|
||||
appcenter-analytics@^3.1.0:
|
||||
version "3.1.3"
|
||||
resolved "https://registry.yarnpkg.com/appcenter-analytics/-/appcenter-analytics-3.1.3.tgz#f7a63b1be7f212c0b70d0964c162efb365de7b85"
|
||||
integrity sha512-bnddHcV3qrkFRREfuNyZ0lYswqS5tS6TOrgSvDscGddeM2e9Piii5DVB7oDpkbnExwQT3G4oE4iGRmgPwBtLPA==
|
||||
appcenter-analytics@3.1.0:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/appcenter-analytics/-/appcenter-analytics-3.1.0.tgz#ec51c79f43c58a6e6d6d5ce4c8bdb0ada3bda539"
|
||||
integrity sha512-zGJRBe39IigyT127/alNzNeOpDYSyRo8RX2RYq2AtL01LnCreOy/fpzoF4yOVPMedFMiinEN+OOqR9e7WydAwg==
|
||||
dependencies:
|
||||
appcenter "3.1.3"
|
||||
appcenter "3.1.0"
|
||||
|
||||
appcenter-crashes@^3.1.0:
|
||||
version "3.1.3"
|
||||
resolved "https://registry.yarnpkg.com/appcenter-crashes/-/appcenter-crashes-3.1.3.tgz#a02b433c916753bdd9aee55c417b77abbfd581eb"
|
||||
integrity sha512-j2DV8npELuG99m0xzqRLhrZACSsO1bxxsVrw3M65iBVCMn6VvdJ9raZA8pedhYEbbhCwI2zQwG3G0gQ/DCHX/A==
|
||||
appcenter-crashes@3.1.0:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/appcenter-crashes/-/appcenter-crashes-3.1.0.tgz#6b0fb592bc5e69cbd83106b47f55c97bc33a3fa3"
|
||||
integrity sha512-2dwy7aqhSKifWg5yZVPuZdNRiHMO/XTsaQSHvvHNDA47BJ2y/cwCsK516KNgoYvp97B3Pr3Xyim7ee/n/xxO4g==
|
||||
dependencies:
|
||||
appcenter "3.1.3"
|
||||
appcenter "3.1.0"
|
||||
|
||||
appcenter-link-scripts@3.1.3:
|
||||
version "3.1.3"
|
||||
resolved "https://registry.yarnpkg.com/appcenter-link-scripts/-/appcenter-link-scripts-3.1.3.tgz#d5d0337a17d384facdd21459f88bc470fb412e6d"
|
||||
integrity sha512-33wlfRYs6FBjCsCjC6oFfTOWeoDU3X6bHVaEPAfjR985s+Du+cviGO7qlp8Jsl4JI4ZUm6TWj50+7a8Kz/A5qQ==
|
||||
appcenter-link-scripts@3.1.0:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/appcenter-link-scripts/-/appcenter-link-scripts-3.1.0.tgz#5cc9d0303f9f16b7170d56a403fa3e69379cfd36"
|
||||
integrity sha512-0ECoQLjfIJhAO8EkvRQ4fO5gZELhzwD3eRhsCD4d27k7TDPXYt32/p5ylHXUWotR7pduTE1rZ8gtETTr4oZf9g==
|
||||
dependencies:
|
||||
debug "4.1.1"
|
||||
glob "5.0.15"
|
||||
@ -1610,12 +1610,12 @@ appcenter-link-scripts@3.1.3:
|
||||
which "1.2.11"
|
||||
xcode "2.0.0"
|
||||
|
||||
appcenter@3.1.3, appcenter@^3.1.0:
|
||||
version "3.1.3"
|
||||
resolved "https://registry.yarnpkg.com/appcenter/-/appcenter-3.1.3.tgz#0662852556e0d8cd748dd66abef453a666cbcb4d"
|
||||
integrity sha512-2WPdoiJ/u0e1an7y9KVVqtEHSFIjlsQJ+EwtWeIXGltdx1LUvdlpSJUuy4EPVKV3jGoxIRUtt9DCAi6ZQG7qPw==
|
||||
appcenter@3.1.0:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/appcenter/-/appcenter-3.1.0.tgz#55fb01bfedc92e732e52ab97c8b344e062ba61a7"
|
||||
integrity sha512-SvEdrqeEqK5BJizdrRmWdp/NFwwb3FJ08U5LQkRdqPoFWXQZ7d+AC2cVnemORXsiYPcpwK9xqiNxyofzEzddFA==
|
||||
dependencies:
|
||||
appcenter-link-scripts "3.1.3"
|
||||
appcenter-link-scripts "3.1.0"
|
||||
|
||||
aproba@^1.0.3:
|
||||
version "1.2.0"
|
||||
|
Loading…
Reference in New Issue
Block a user