Fixed the length (#4296)

This commit is contained in:
Rajat Dabade 2022-12-20 01:15:27 +05:30 committed by GitHub
parent 16095fd2e9
commit 8927592c57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,8 +62,8 @@ const AttachmentElement = (props: Props): JSX.Element|null => {
}
if (fileInfo.name && !fileName) {
const generateFileName = (fName: string) => {
if (fName.length > 21) {
let result = fName.slice(0, 18)
if (fName.length > 18) {
let result = fName.slice(0, 15)
result += '...'
return result
}