Allow edits which just remove the quote

This commit is contained in:
Scott Nonnenberg 2024-09-20 10:40:26 +10:00 committed by GitHub
parent 96a2d05906
commit 855b1c03b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 18 additions and 25 deletions

View file

@ -30,9 +30,7 @@ const useProps = (overrideProps: Partial<Props> = {}): Props => {
draftText: overrideProps.draftText ?? null,
draftEditMessage: overrideProps.draftEditMessage ?? null,
draftBodyRanges: overrideProps.draftBodyRanges || [],
clearQuotedMessage: action('clearQuotedMessage'),
getPreferredBadge: () => undefined,
getQuotedMessage: action('getQuotedMessage'),
isActive: true,
isFormattingEnabled:
overrideProps.isFormattingEnabled === false
@ -45,6 +43,7 @@ const useProps = (overrideProps: Partial<Props> = {}): Props => {
onSubmit: action('onSubmit'),
onTextTooLong: action('onTextTooLong'),
platform: 'darwin',
quotedMessageId: null,
sendCounter: 0,
sortedGroupMembers: overrideProps.sortedGroupMembers ?? [],
skinTone: overrideProps.skinTone ?? null,