(cherry picked from commit a27ad43394)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
parent
dfc142d7f3
commit
4efbbd32fe
5 changed files with 11 additions and 13 deletions
|
|
@ -198,7 +198,7 @@ const PostList = ({
|
|||
|
||||
const viewableItemsMap = viewableItems.reduce((acc: Record<string, boolean>, {item, isViewable}) => {
|
||||
if (isViewable && item.type === 'post') {
|
||||
acc[`${location}-${item.value.id}`] = true;
|
||||
acc[`${location}-${item.value.currentPost.id}`] = true;
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ const RecentMentionsScreen = ({appsEnabled, customEmojiNames, mentions, currentT
|
|||
|
||||
const viewableItemsMap = viewableItems.reduce((acc: Record<string, boolean>, {item, isViewable}) => {
|
||||
if (isViewable && item.type === 'post') {
|
||||
acc[`${Screens.MENTIONS}-${item.value.id}`] = true;
|
||||
acc[`${Screens.MENTIONS}-${item.value.currentPost.id}`] = true;
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ function SavedMessages({appsEnabled, posts, currentTimezone, customEmojiNames, i
|
|||
|
||||
const viewableItemsMap = viewableItems.reduce((acc: Record<string, boolean>, {item, isViewable}) => {
|
||||
if (isViewable && item.type === 'post') {
|
||||
acc[`${Screens.SAVED_MESSAGES}-${item.value.id}`] = true;
|
||||
acc[`${Screens.SAVED_MESSAGES}-${item.value.currentPost.id}`] = true;
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ function SavedMessages({
|
|||
|
||||
const viewableItemsMap = viewableItems.reduce((acc: Record<string, boolean>, {item, isViewable}) => {
|
||||
if (isViewable && item.type === 'post') {
|
||||
acc[`${Screens.PINNED_MESSAGES}-${item.value.id}`] = true;
|
||||
acc[`${Screens.PINNED_MESSAGES}-${item.value.currentPost.id}`] = true;
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
|
|
|
|||
16
package-lock.json
generated
16
package-lock.json
generated
|
|
@ -6,7 +6,7 @@
|
|||
"packages": {
|
||||
"": {
|
||||
"name": "mattermost-mobile",
|
||||
"version": "2.4.0",
|
||||
"version": "2.5.0",
|
||||
"hasInstallScript": true,
|
||||
"license": "Apache 2.0",
|
||||
"dependencies": {
|
||||
|
|
@ -4323,7 +4323,7 @@
|
|||
"@react-native-community/cli-tools": "^10.1.1",
|
||||
"chalk": "^4.1.2",
|
||||
"execa": "^1.0.0",
|
||||
"fast-xml-parser": "^4.0.12",
|
||||
"fast-xml-parser": "^4.2.4",
|
||||
"glob": "^7.1.3",
|
||||
"ora": "^5.4.1"
|
||||
}
|
||||
|
|
@ -10824,9 +10824,8 @@
|
|||
"dev": true
|
||||
},
|
||||
"node_modules/fast-xml-parser": {
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.0.tgz",
|
||||
"integrity": "sha512-+zVQv4aVTO+o8oRUyRL7PjgeVo1J6oP8Cw2+a8UTZQcj5V0yUK5T63gTN0ldgiHDPghUjKc4OpT6SwMTwnOQug==",
|
||||
"version": "4.2.4",
|
||||
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.4.tgz",
|
||||
"dependencies": {
|
||||
"strnum": "^1.0.5"
|
||||
},
|
||||
|
|
@ -25011,7 +25010,7 @@
|
|||
"@react-native-community/cli-tools": "^10.1.1",
|
||||
"chalk": "^4.1.2",
|
||||
"execa": "^1.0.0",
|
||||
"fast-xml-parser": "^4.0.12",
|
||||
"fast-xml-parser": "^4.2.4",
|
||||
"glob": "^7.1.3",
|
||||
"ora": "^5.4.1"
|
||||
},
|
||||
|
|
@ -29763,9 +29762,8 @@
|
|||
"dev": true
|
||||
},
|
||||
"fast-xml-parser": {
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.0.tgz",
|
||||
"integrity": "sha512-+zVQv4aVTO+o8oRUyRL7PjgeVo1J6oP8Cw2+a8UTZQcj5V0yUK5T63gTN0ldgiHDPghUjKc4OpT6SwMTwnOQug==",
|
||||
"version": "4.2.4",
|
||||
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.4.tgz",
|
||||
"requires": {
|
||||
"strnum": "^1.0.5"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue