You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
clear quoting event even on send fail, as then we can click retry
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -869,15 +869,15 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.client.sendMessage(this.props.room.roomId, content).done((res) => {
|
this.client.sendMessage(this.props.room.roomId, content).finally(() => {
|
||||||
dis.dispatch({
|
|
||||||
action: 'message_sent',
|
|
||||||
});
|
|
||||||
// Once replies are not only for text, we can use message_sent for this
|
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'reply_to_event',
|
action: 'reply_to_event',
|
||||||
event: null,
|
event: null,
|
||||||
});
|
});
|
||||||
|
}).done((res) => {
|
||||||
|
dis.dispatch({
|
||||||
|
action: 'message_sent',
|
||||||
|
});
|
||||||
}, (e) => onSendMessageFailed(e, this.props.room));
|
}, (e) => onSendMessageFailed(e, this.props.room));
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|||||||
Reference in New Issue
Block a user