1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Suppress spoiler for easier reading

As spoiler is default expanded now in thread
This commit is contained in:
xmflsct
2023-01-29 19:27:15 +01:00
parent aba239188f
commit 83cd5d4eb0
6 changed files with 24 additions and 8 deletions

View File

@ -346,8 +346,13 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
<TimelineDefault
item={item}
queryKey={item._remote ? queryKey.remote : queryKey.local}
highlighted={toot.id === item.id || item.id === 'cached'}
isConversation={toot.id !== item.id && item.id !== 'cached'}
highlighted={toot.id === item.id}
suppressSpoiler={
toot.id !== item.id &&
!!toot.spoiler_text?.length &&
toot.spoiler_text === item.spoiler_text
}
isConversation={toot.id !== item.id}
noBackground
/>
{/* <CustomText