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

When replying to CW content, CW will be added

This commit is contained in:
Zhiyuan Zheng
2021-02-27 17:25:01 +01:00
parent f3fa6bc662
commit 4eea2bf58c
6 changed files with 45 additions and 24 deletions

View File

@ -145,6 +145,23 @@ const ScreenCompose: React.FC<ScreenComposeProp> = ({
})
break
case 'reply':
const actualStatus =
params.incomingStatus.reblog || params.incomingStatus
if (actualStatus.spoiler_text) {
formatText({
textInput: 'spoiler',
composeDispatch,
content: actualStatus.spoiler_text,
disableDebounce: true
})
}
formatText({
textInput: 'text',
composeDispatch,
content: params.accts.map(acct => `@${acct}`).join(' ') + ' ',
disableDebounce: true
})
break
case 'conversation':
formatText({
textInput: 'text',