1
0
mirror of https://github.com/tooot-app/app synced 2025-01-05 14:07:44 +01:00

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

View File

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