No need to show initial toot in history

Nothing changed in there
This commit is contained in:
xmflsct 2023-01-12 21:12:51 +01:00
parent 2a19e1fc2a
commit 81b810496b
1 changed files with 9 additions and 7 deletions

View File

@ -161,13 +161,15 @@ const TabSharedHistory: React.FC<TabSharedStackScreenProps<'Tab-Shared-History'>
<FlatList
style={{ flex: 1, minHeight: '100%' }}
data={dataReversed}
renderItem={({ item, index }) => (
<ContentView
withoutBoundary={withoutBoundary}
item={item}
prevItem={dataReversed[index + 1]}
/>
)}
renderItem={({ item, index }) =>
index === dataReversed.length - 1 ? null : (
<ContentView
withoutBoundary={withoutBoundary}
item={item}
prevItem={dataReversed[index + 1]}
/>
)
}
ItemSeparatorComponent={ComponentSeparator}
/>
)