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 reply_to_event at queue not send time
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -869,12 +869,14 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.client.sendMessage(this.props.room.roomId, content).finally(() => {
|
// Clear reply_to_event as we put the message into the queue
|
||||||
dis.dispatch({
|
// if the send fails, retry will handle resending.
|
||||||
action: 'reply_to_event',
|
dis.dispatch({
|
||||||
event: null,
|
action: 'reply_to_event',
|
||||||
});
|
event: null,
|
||||||
}).done((res) => {
|
});
|
||||||
|
|
||||||
|
this.client.sendMessage(this.props.room.roomId, content).done((res) => {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'message_sent',
|
action: 'message_sent',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user