Introduce smaller incoming size limit for text attachments

This commit is contained in:
Scott Nonnenberg 2023-12-18 10:14:59 -08:00 committed by GitHub
parent 8c71ed2590
commit 5e733059b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 85 additions and 31 deletions

View file

@ -118,6 +118,17 @@ export function TextPending(): JSX.Element {
return <MessageBody {...props} />;
}
export function MessageTooLong(): JSX.Element {
const props = createProps({
text: 'Check out https://www.signal.org',
textAttachment: {
wasTooBig: true,
},
});
return <MessageBody {...props} />;
}
export function Mention(): JSX.Element {
const props = createProps({
bodyRanges: [