@@ -17,6 +17,8 @@ const acceptTypes: any = { image: 'image/png,image/jpeg', zip: 'application/zip', pdf: 'application/pdf', + docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + doc: 'application/msword', audio: 'audio/*', txt: '.txt', text: '', @@ -44,9 +44,9 @@ export const UserMessage = React.memo(function UserMessage(props: IMessagesList) } const fileName = useMemo(() => { - if (!props.message.file) return '' + if (!props.message.file) return 'Подбираем имя файла...' const matches = (props.message.file as string).match(/air-messages\/(.+?)\.(.+?)\?/) - if (!matches) return '' + if (!matches) return 'Подбираем имя файла...' return `${matches[1]}.${matches[2]}` }, [])