You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Add warning to Upload Confirm prompt if replying, as can't reply with file
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -111,6 +111,14 @@ export default class MessageComposer extends React.Component {
|
|||||||
</li>);
|
</li>);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isQuoting = Boolean(RoomViewStore.getQuotingEvent());
|
||||||
|
let replyToWarning = null;
|
||||||
|
if (isQuoting) {
|
||||||
|
replyToWarning = <p>{
|
||||||
|
_t('At this time it is not possible to reply with a file so this will be sent without being a reply.')
|
||||||
|
}</p>;
|
||||||
|
}
|
||||||
|
|
||||||
Modal.createTrackedDialog('Upload Files confirmation', '', QuestionDialog, {
|
Modal.createTrackedDialog('Upload Files confirmation', '', QuestionDialog, {
|
||||||
title: _t('Upload Files'),
|
title: _t('Upload Files'),
|
||||||
description: (
|
description: (
|
||||||
@@ -119,6 +127,7 @@ export default class MessageComposer extends React.Component {
|
|||||||
<ul style={{listStyle: 'none', textAlign: 'left'}}>
|
<ul style={{listStyle: 'none', textAlign: 'left'}}>
|
||||||
{ fileList }
|
{ fileList }
|
||||||
</ul>
|
</ul>
|
||||||
|
{ replyToWarning }
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
onFinished: (shouldUpload) => {
|
onFinished: (shouldUpload) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user